mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
Add test for using insert text
This commit is contained in:
@@ -16,4 +16,13 @@ suite('typescript function call snippets', () => {
|
||||
).value,
|
||||
'abc()$0');
|
||||
});
|
||||
|
||||
test('Should use insertText to override function name if no display parts are provided', async () => {
|
||||
assert.strictEqual(
|
||||
snippetForFunctionCall(
|
||||
{ label: 'abc', insertText: 'def' },
|
||||
[]
|
||||
).value,
|
||||
'def()$0');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user