From 5718f65162b938b3615028a366649428aece6385 Mon Sep 17 00:00:00 2001 From: salexdv Date: Wed, 31 Aug 2022 18:30:29 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B5=D1=81=D1=82=20=D0=BF=D0=BE=D0=B4?= =?UTF-8?q?=D1=81=D0=BA=D0=B0=D0=B7=D0=BA=D0=B8=20=D1=82=D0=B0=D0=B1=D0=BB?= =?UTF-8?q?=D0=B8=D1=87=D0=BD=D1=8B=D1=85=20=D1=87=D0=B0=D1=81=D1=82=D0=B5?= =?UTF-8?q?=D0=B9=20=D0=B2=20=D0=BA=D0=BE=D0=BD=D1=81=D1=82=D1=80=D1=83?= =?UTF-8?q?=D0=BA=D1=86=D0=B8=D0=B8=20=D0=98=D0=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test_query.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/test_query.js b/src/test_query.js index ec8f28f..512f94f 100644 --- a/src/test_query.js +++ b/src/test_query.js @@ -426,6 +426,18 @@ describe("Проверка автокомлита и подсказок реда }); + it("проверка подсказки табличных частей в конструкции ИЗ или СОЕДИНЕНИЕ", function () { + bsl = helper(`ВЫБРАТЬ + * + ИЗ + Справочник.Товары.`); + let suggestions = bsl.getQueryCompletion(); + console.log(suggestions); + expect(suggestions).to.be.an('object'); + expect(suggestions.suggestions).to.be.an('array').that.not.is.empty; + assert.equal(suggestions.suggestions.some(suggest => suggest.label === "ДополнительныеРеквизиты"), true); + }); + setLanguageMode('bsl_query'); mocha.run();