Skip to content

Commit

Permalink
Test: suggestFunctionsInStringContextAfterSymbols option
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmlnc committed Nov 24, 2016
1 parent f65eb28 commit 04bd618
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/providers/completion.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ describe('Providers/Completion - Context', () => {
assert.equal(doCompletion(doc, 78, settings, cache).items.length, 2, 'Mixin');
});

it('Custom value for `suggestFunctionsInStringContextAfterSymbols` option', () => {
const doc = makeDocument('.a { background: url(../images/m');
const options = Object.assign(settings, <ISettings>{
suggestFunctionsInStringContextAfterSymbols: '/'
});
assert.equal(doCompletion(doc, 32, options, cache).items.length, 1);
});

it('Discard suggestions inside single-line comments', () => {
const doc = makeDocument('// $');
assert.equal(doCompletion(doc, 4, settings, cache).items.length, 0);
Expand Down

0 comments on commit 04bd618

Please sign in to comment.