summaryrefslogtreecommitdiffhomepage
path: root/gui/flow-libs/tests.js.flow
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-07-18 15:07:37 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-08-15 17:39:38 +0200
commit71592249b2dd669b6f24f37bfb7b0f4e43b74998 (patch)
treea6097dc7e5d94d06e99c65fdfe160e824395f50c /gui/flow-libs/tests.js.flow
parente84e87f4ce5a8c242f756566cdc6fb59a45f7bea (diff)
downloadmullvadvpn-71592249b2dd669b6f24f37bfb7b0f4e43b74998.tar.xz
mullvadvpn-71592249b2dd669b6f24f37bfb7b0f4e43b74998.zip
Add workspaces
Diffstat (limited to 'gui/flow-libs/tests.js.flow')
-rw-r--r--gui/flow-libs/tests.js.flow12
1 files changed, 12 insertions, 0 deletions
diff --git a/gui/flow-libs/tests.js.flow b/gui/flow-libs/tests.js.flow
new file mode 100644
index 0000000000..8b6621a6de
--- /dev/null
+++ b/gui/flow-libs/tests.js.flow
@@ -0,0 +1,12 @@
+import chai from 'chai';
+
+// We use electron-mocha which has a child dependency on mocha.
+// However flow-typed does not automatically pull annotations for mocha.
+// These stubs remedy the absence of those.
+declare function describe(string, Function): void;
+declare function it(string, (done: Function) => any): Promise<any> | void;
+declare function afterEach((done: Function) => void): Promise<any> | void;
+declare function beforeEach((done: Function) => void): Promise<any> | void;
+
+declare var expect: $PropertyType<chai, 'expect'>;
+declare var spy: any;