Add test for using insert text

This commit is contained in:
Matt Bierner
2018-11-20 16:32:25 -08:00
parent ecce9249cb
commit ec3cba2661

View File

@@ -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');
});
});