From f1bc333f28d6e8d52a2c4b3323316b13c2ea0df2 Mon Sep 17 00:00:00 2001 From: Maciej Lenartowicz Date: Thu, 29 Aug 2019 11:46:13 +0200 Subject: [PATCH] Removed mockWS --- .eslintrc.js | 2 +- src/index.js | 5 ----- src/testUtils/mockWS.js | 18 ------------------ 3 files changed, 1 insertion(+), 24 deletions(-) delete mode 100644 src/testUtils/mockWS.js diff --git a/.eslintrc.js b/.eslintrc.js index b5898b0..d783c34 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -31,7 +31,7 @@ module.exports = { "import/no-unresolved": [ "error", // Ignore imports used only in tests - { ignore: ["mockWS", "customTestRender"] } + { ignore: ["customTestRender"] } ], "import/no-cycle": "warn", "no-console": "error", diff --git a/src/index.js b/src/index.js index cffb4b5..8b0f17b 100644 --- a/src/index.js +++ b/src/index.js @@ -26,16 +26,11 @@ export { ModalHeader, } from "bootstrap/Modal"; - // Form export { ForisForm } from "form/components/ForisForm"; export { SubmitButton, STATES as SUBMIT_BUTTON_STATES } from "form/components/SubmitButton"; export { useForisModule, useForm } from "form/hooks"; - -// Test Utils -export { mockedWS } from "testUtils/mockWS"; - // WebSockets export { useWSForisModule } from "webSockets/hooks"; export { WebSockets } from "webSockets/WebSockets"; diff --git a/src/testUtils/mockWS.js b/src/testUtils/mockWS.js deleted file mode 100644 index 1c66b59..0000000 --- a/src/testUtils/mockWS.js +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/) - * - * This is free software, licensed under the GNU General Public License v3. - * See /LICENSE for more information. - */ - - -// Mock foris WS -export class mockedWS { - bind() { - return this - } - - subscribe() { - return this - } -}