diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-06-19 14:35:18 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-06-20 15:36:17 +0200 |
| commit | 46672191cb3ee17b82f4af412bd00c75e138eaf9 (patch) | |
| tree | a354207aab5af7a270ae2a8e80d5cecccf68d0c2 /flow-libs | |
| parent | 46125ddac41dd0b5915940a5e9cf0e9b547c56d9 (diff) | |
| download | mullvadvpn-46672191cb3ee17b82f4af412bd00c75e138eaf9.tar.xz mullvadvpn-46672191cb3ee17b82f4af412bd00c75e138eaf9.zip | |
Make expect and spy global for all tests
Diffstat (limited to 'flow-libs')
| -rw-r--r-- | flow-libs/tests.js.flow | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/flow-libs/tests.js.flow b/flow-libs/tests.js.flow index b1daeefa4c..aecc8239fa 100644 --- a/flow-libs/tests.js.flow +++ b/flow-libs/tests.js.flow @@ -1,3 +1,5 @@ +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. @@ -5,3 +7,6 @@ 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;
\ No newline at end of file |
