Sinon is globally available by a lowercase sinon variable, not Sinon

This commit is contained in:
Andy Hanson
2016-11-04 10:26:06 -07:00
parent 8c65c84d30
commit c0f2401de3
2 changed files with 3 additions and 3 deletions

View File

@@ -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
View File

@@ -437,4 +437,4 @@ declare namespace Sinon {
declare var Sinon: Sinon.SinonStatic;
export = Sinon;
export as namespace Sinon;
export as namespace sinon;