Merge pull request #2897 from cspotcode/master

Updates sinon-chai definition and tests to support loading sinon-chai as a chai plugin.
This commit is contained in:
Masahiro Wakame
2014-09-30 12:08:09 +09:00
2 changed files with 13 additions and 3 deletions
+8 -3
View File
@@ -3,12 +3,17 @@
declare var expect: chai.ExpectStatic;
import chai = require('chai');
import sinonChai = require('sinon-chai');
chai.use(sinonChai);
function test() {
var spy: Function;
var anotherSpy: Function;
var context;
var match;
var context: any;
var match: any;
expect(spy).to.have.been.called;
expect(spy).to.have.been.calledOnce;
expect(spy).to.have.been.calledTwice;
+5
View File
@@ -26,3 +26,8 @@ declare module chai {
always: Expect;
}
}
declare module "sinon-chai" {
function exports(_chai: typeof chai, utils: any): void;
export = exports;
}