summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-06-13 16:16:33 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-06-14 10:41:18 +0200
commit56ceac7ba465664c43614fad11ec1b0d34eefe77 (patch)
treee01163a0d75fc0e62873bbbaef2dc52650b94cde
parent10a1d34c6fb9f333c6a93c8b7610562b0507c640 (diff)
downloadmullvadvpn-56ceac7ba465664c43614fad11ec1b0d34eefe77.tar.xz
mullvadvpn-56ceac7ba465664c43614fad11ec1b0d34eefe77.zip
Add mocha stubs
-rw-r--r--flow-libs/tests.js.flow7
1 files changed, 7 insertions, 0 deletions
diff --git a/flow-libs/tests.js.flow b/flow-libs/tests.js.flow
new file mode 100644
index 0000000000..b1daeefa4c
--- /dev/null
+++ b/flow-libs/tests.js.flow
@@ -0,0 +1,7 @@
+// 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;