From 2714cc570823aaedc9ded9fba2ac64f09b59f140 Mon Sep 17 00:00:00 2001 From: Mikhail Chechnev Date: Fri, 8 Mar 2019 20:50:53 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BD=D1=91=D1=81=20te?= =?UTF-8?q?st.js=20=D0=B2=20=D1=80=D0=B5=D0=BF=D0=BE=D0=B7=D0=B8=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=B8=D0=B9=20P8-ExchangeServiceExt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test.js | 52 ---------------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 test.js diff --git a/test.js b/test.js deleted file mode 100644 index 13760b2..0000000 --- a/test.js +++ /dev/null @@ -1,52 +0,0 @@ -/* - Сервис интеграции ПП Парус 8 с WEB API - Песочница для тестов -*/ - -require("module-alias/register"); //Поддержка псевонимов при подключении модулей -const _ = require("lodash"); -const db = require("./core/db_connector"); -const cfg = require("./config"); -const utl = require("./core/utils"); -const servSchema = require("./models/obj_service"); -const Schema = require("validate"); //Схемы валидации -const js2xmlparser = require("js2xmlparser"); //Конвертация JSON в XML -//const { xml } = require("./fisc_doc_xml"); -const parseString = require("xml2js").parseString; //Конвертация XML в JSON -/* -const NDETECTING_LOOP_INTERVAL = 10; -let nTimeOut = null; - -const restartDetectingLoop = () => { - console.log(`BEGIN restartDetectingLoop`); - nTimeOut = setTimeout(notifyDetectingLoop, NDETECTING_LOOP_INTERVAL); - console.log(`END restartDetectingLoop`); -}; - -const someAsyncAction = i => { - return new Promise((res, rej) => { - setTimeout(() => { - console.log(`Сделал I=${i}`); - res(); - }, 100); - }); -}; - -//Опрос очереди уведомлений -const notifyDetectingLoop = async () => { - console.log(`BEGIN notifyDetectingLoop`); - for (let i = 0; i <= 5; i++) { - console.log(`Делаю I=${i}`); - await someAsyncAction(i); - } - restartDetectingLoop(); - console.log(`END notifyDetectingLoop`); -}; - -notifyDetectingLoop(); -*/ - -//let sObjName = "123"; -//console.log(utl.validateObject({}, servSchema.ServiceCtx)); -let b; -let a = new Buffer(b || "");