mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-12-25 00:11:36 +01:00
Removed mockWS
This commit is contained in:
parent
59bccde058
commit
f1bc333f28
|
@ -31,7 +31,7 @@ module.exports = {
|
||||||
"import/no-unresolved": [
|
"import/no-unresolved": [
|
||||||
"error",
|
"error",
|
||||||
// Ignore imports used only in tests
|
// Ignore imports used only in tests
|
||||||
{ ignore: ["mockWS", "customTestRender"] }
|
{ ignore: ["customTestRender"] }
|
||||||
],
|
],
|
||||||
"import/no-cycle": "warn",
|
"import/no-cycle": "warn",
|
||||||
"no-console": "error",
|
"no-console": "error",
|
||||||
|
|
|
@ -26,16 +26,11 @@ export {
|
||||||
ModalHeader,
|
ModalHeader,
|
||||||
} from "bootstrap/Modal";
|
} from "bootstrap/Modal";
|
||||||
|
|
||||||
|
|
||||||
// Form
|
// Form
|
||||||
export { ForisForm } from "form/components/ForisForm";
|
export { ForisForm } from "form/components/ForisForm";
|
||||||
export { SubmitButton, STATES as SUBMIT_BUTTON_STATES } from "form/components/SubmitButton";
|
export { SubmitButton, STATES as SUBMIT_BUTTON_STATES } from "form/components/SubmitButton";
|
||||||
export { useForisModule, useForm } from "form/hooks";
|
export { useForisModule, useForm } from "form/hooks";
|
||||||
|
|
||||||
|
|
||||||
// Test Utils
|
|
||||||
export { mockedWS } from "testUtils/mockWS";
|
|
||||||
|
|
||||||
// WebSockets
|
// WebSockets
|
||||||
export { useWSForisModule } from "webSockets/hooks";
|
export { useWSForisModule } from "webSockets/hooks";
|
||||||
export { WebSockets } from "webSockets/WebSockets";
|
export { WebSockets } from "webSockets/WebSockets";
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user