1 | // Type definitions for sinon-test 2.4
|
2 | // Project: https://github.com/sinonjs/sinon-test
|
3 | // Definitions by: Francis Saul <https://github.com/mummybot>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 | // TypeScript Version: 2.8
|
6 |
|
7 | import * as Sinon from 'sinon';
|
8 |
|
9 | interface Configuration {
|
10 | injectIntoThis?: boolean;
|
11 | injectInto?: any;
|
12 | properties?: Array<"spy" | "stub" | "mock" | "clock" | "server" | "requests">;
|
13 | useFakeTimers?: boolean;
|
14 | useFakeServer?: boolean;
|
15 | }
|
16 |
|
17 | declare function sinonTest(sinon: Sinon.SinonStatic, config?: Configuration): any;
|
18 | declare namespace sinonTest {
|
19 | function configureTest(sinon: Sinon.SinonStatic, config?: Configuration): any;
|
20 | }
|
21 |
|
22 | export = sinonTest;
|