blob: 8b6621a6dec2bfed334c47ed7a48c5fdaeb8e5fe (
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;
|