diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-07-18 15:07:37 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-08-15 17:39:38 +0200 |
| commit | 71592249b2dd669b6f24f37bfb7b0f4e43b74998 (patch) | |
| tree | a6097dc7e5d94d06e99c65fdfe160e824395f50c /gui/flow-libs/tests.js.flow | |
| parent | e84e87f4ce5a8c242f756566cdc6fb59a45f7bea (diff) | |
| download | mullvadvpn-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.flow | 12 |
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; |
