mirror of
https://github.com/salexdv/bsl_console.git
synced 2024-11-28 08:48:48 +02:00
Тест подсказки директив компиляции #300
This commit is contained in:
parent
5296b49a3b
commit
851fbd36c2
23
src/test.js
23
src/test.js
@ -1156,6 +1156,29 @@ describe("Проверка автокомлита и подсказок реда
|
|||||||
assert.equal(suggestions.some(suggest => suggest.label === "ТипВсеСсылки"), true);
|
assert.equal(suggestions.some(suggest => suggest.label === "ТипВсеСсылки"), true);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("проверка подсказки директив компиляции", function () {
|
||||||
|
|
||||||
|
bsl = helper('&');
|
||||||
|
let suggestions = bsl.getCodeCompletion({ triggerCharacter: '&' });
|
||||||
|
expect(suggestions).to.be.an('array').that.not.is.empty;
|
||||||
|
assert.equal(suggestions.some(suggest => suggest.label === "НаСервере"), true);
|
||||||
|
|
||||||
|
bsl = helper('&');
|
||||||
|
suggestions = bsl.getCodeCompletion({ triggerCharacter: '' });
|
||||||
|
expect(suggestions).to.be.an('array').that.not.is.empty;
|
||||||
|
assert.equal(suggestions.some(suggest => suggest.label === "НаСервере"), true);
|
||||||
|
|
||||||
|
bsl = helper('&На');
|
||||||
|
suggestions = bsl.getCodeCompletion({ triggerCharacter: '' });
|
||||||
|
expect(suggestions).to.be.an('array').that.not.is.empty;
|
||||||
|
assert.equal(suggestions.some(suggest => suggest.label === "НаСервере"), true);
|
||||||
|
|
||||||
|
bsl = helper('На &');
|
||||||
|
suggestions = bsl.getCodeCompletion({ triggerCharacter: '' });
|
||||||
|
expect(suggestions).to.be.an('array').that.is.empty;
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user