summaryrefslogtreecommitdiffhomepage
path: root/flow-libs/tests.js.flow
blob: aecc8239fa287f1bafc083acb066e5ec2896774d (plain)
1
2
3
4
5
6
7
8
9
10
11
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;