Files
DefinitelyTyped/types/sinon-test/index.d.ts
T
James Garbutt 73f6eb2bca sinon: 5.x release and cleanup (#25491)
* sinon: cleanup types and rewrite tests

* Used a conditional type for Sinon's stub class typings  (#25656)

* Used a conditional type for Sinon's stub class typings

* mochaccino

* sinon: fix some whitespace

* sinon: stub/spy test case

* sinon: cleanup mixed indent
2018-05-24 08:03:23 -07:00

25 lines
728 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
// TypeScript Version: 2.8
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;