mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-07 04:50:54 +08:00
26 lines
642 B
TypeScript
26 lines
642 B
TypeScript
import * as sinon from 'sinon';
|
|
import * as sinonTest from 'sinon-test';
|
|
|
|
function testConfigure() {
|
|
const test = sinonTest.configureTest(sinon, {
|
|
injectIntoThis: true,
|
|
injectInto: true,
|
|
properties: ["spy", "stub", "mock", "clock", "server", "requests"],
|
|
useFakeTimers: true,
|
|
useFakeServer: true
|
|
});
|
|
}
|
|
|
|
function testConfigureTestCase() {
|
|
const test = sinonTest.configureTestCase(sinon, {
|
|
injectIntoThis: true,
|
|
injectInto: true,
|
|
properties: ["spy", "stub", "mock", "clock", "server", "requests"],
|
|
useFakeTimers: true,
|
|
useFakeServer: true
|
|
});
|
|
}
|
|
|
|
testConfigure();
|
|
testConfigureTestCase();
|