DefinitelyTyped/types/sinon-test/index.d.ts
2019-07-08 18:04:07 -07:00

23 lines
720 B
TypeScript

// Type definitions for sinon-test 2.4
// 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;
}
declare function sinonTest(sinon: Sinon.SinonStatic, config?: Configuration): any;
declare namespace sinonTest {
function configureTest(sinon: Sinon.SinonStatic, config?: Configuration): any;
}
export = sinonTest;