From c0f2401de3e9c207451d271e05f643ed14685ab3 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Fri, 4 Nov 2016 10:26:06 -0700 Subject: [PATCH] Sinon is globally available by a lowercase `sinon` variable, not `Sinon` --- sinon-as-promised/sinon-as-promised-tests.ts | 4 ++-- sinon/index.d.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sinon-as-promised/sinon-as-promised-tests.ts b/sinon-as-promised/sinon-as-promised-tests.ts index b835fe9952..10602a3e8d 100644 --- a/sinon-as-promised/sinon-as-promised-tests.ts +++ b/sinon-as-promised/sinon-as-promised-tests.ts @@ -1,11 +1,11 @@ /// 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(); diff --git a/sinon/index.d.ts b/sinon/index.d.ts index a00a86c40c..bcea91929f 100644 --- a/sinon/index.d.ts +++ b/sinon/index.d.ts @@ -437,4 +437,4 @@ declare namespace Sinon { declare var Sinon: Sinon.SinonStatic; export = Sinon; -export as namespace Sinon; +export as namespace sinon;