mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 18:43:21 +08:00
24 lines
701 B
TypeScript
24 lines
701 B
TypeScript
// Type definitions for sinon-test 1.0
|
|
// Project: https://github.com/sinonjs/sinon-test
|
|
// Definitions by: Francis Saul <https://github.com/mummybot>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
import * as Sinon from 'sinon';
|
|
|
|
interface Configuration {
|
|
injectIntoThis?: boolean;
|
|
injectInto?: any;
|
|
properties?: Array<"spy"| "stub"| "mock"| "clock"| "server"| "requests">;
|
|
useFakeTimers?: boolean;
|
|
useFakeServer?: boolean;
|
|
}
|
|
|
|
interface sinonTest {
|
|
configureTest(sinon: Sinon.SinonStatic, config?: Configuration): any;
|
|
configureTestCase(sinon: Sinon.SinonStatic, config?: Configuration): any;
|
|
}
|
|
|
|
declare var sinonTest: sinonTest;
|
|
|
|
export = sinonTest;
|