mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Sinon is globally available by a lowercase sinon variable, not Sinon
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
/// <reference types="sinon"/>
|
||||
|
||||
function testResolve() {
|
||||
Sinon.stub().resolves('test val');
|
||||
sinon.stub().resolves('test val');
|
||||
}
|
||||
|
||||
function testReject() {
|
||||
Sinon.stub().rejects('test val');
|
||||
sinon.stub().rejects('test val');
|
||||
}
|
||||
|
||||
testResolve();
|
||||
|
||||
2
sinon/index.d.ts
vendored
2
sinon/index.d.ts
vendored
@@ -437,4 +437,4 @@ declare namespace Sinon {
|
||||
declare var Sinon: Sinon.SinonStatic;
|
||||
|
||||
export = Sinon;
|
||||
export as namespace Sinon;
|
||||
export as namespace sinon;
|
||||
|
||||
Reference in New Issue
Block a user