summaryrefslogtreecommitdiffhomepage
path: root/gui/flow-libs/tests.js.flow
blob: e497690359bb368692a65bd5334bdb65fc6c1fc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 sinon: any;
declare var spy: any;