mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
23 lines
720 B
TypeScript
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;
|