Skip to content
Prev Previous commit
Next Next commit
Fix completionModel tests by adding missing properties
  • Loading branch information
svipas committed Mar 7, 2019
commit a3b5a8f72468e2677c87c211e41cb4e7031d2c1d
30 changes: 27 additions & 3 deletions src/vs/editor/contrib/suggest/test/completionModel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,15 @@ suite('CompletionModel', function () {
], 1, {
leadingLineContent: 's',
characterCountDelta: 0
}, WordDistance.None, { snippets: 'top', snippetsPreventQuickSuggestions: true, filterGraceful: true, localityBonus: false, shareSuggestSelections: false });
}, WordDistance.None, {
snippets: 'top',
snippetsPreventQuickSuggestions: true,
filterGraceful: true,
localityBonus: false,
shareSuggestSelections: false,
showIcons: true,
maxSuggestionsToShow: 12
});

assert.equal(model.items.length, 2);
const [a, b] = model.items;
Expand All @@ -176,7 +184,15 @@ suite('CompletionModel', function () {
], 1, {
leadingLineContent: 's',
characterCountDelta: 0
}, WordDistance.None, { snippets: 'bottom', snippetsPreventQuickSuggestions: true, filterGraceful: true, localityBonus: false, shareSuggestSelections: false });
}, WordDistance.None, {
snippets: 'bottom',
snippetsPreventQuickSuggestions: true,
filterGraceful: true,
localityBonus: false,
shareSuggestSelections: false,
showIcons: true,
maxSuggestionsToShow: 12
});

assert.equal(model.items.length, 2);
const [a, b] = model.items;
Expand All @@ -194,7 +210,15 @@ suite('CompletionModel', function () {
], 1, {
leadingLineContent: 's',
characterCountDelta: 0
}, WordDistance.None, { snippets: 'inline', snippetsPreventQuickSuggestions: true, filterGraceful: true, localityBonus: false, shareSuggestSelections: false });
}, WordDistance.None, {
snippets: 'inline',
snippetsPreventQuickSuggestions: true,
filterGraceful: true,
localityBonus: false,
shareSuggestSelections: false,
showIcons: true,
maxSuggestionsToShow: 12
});

assert.equal(model.items.length, 2);
const [a, b] = model.items;
Expand Down