UNPKG

720 BTypeScriptView Raw
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
7import * as Sinon from 'sinon';
8
9interface Configuration {
10 injectIntoThis?: boolean;
11 injectInto?: any;
12 properties?: Array<"spy" | "stub" | "mock" | "clock" | "server" | "requests">;
13 useFakeTimers?: boolean;
14 useFakeServer?: boolean;
15}
16
17declare function sinonTest(sinon: Sinon.SinonStatic, config?: Configuration): any;
18declare namespace sinonTest {
19 function configureTest(sinon: Sinon.SinonStatic, config?: Configuration): any;
20}
21
22export = sinonTest;