Merge pull request #1169 from daptiv/update-chai

Update chai
This commit is contained in:
basarat
2013-10-23 17:34:30 -07:00
2 changed files with 9 additions and 0 deletions
+6
View File
@@ -688,6 +688,12 @@ function _throw() {
}, "blah: expected [Function] to throw error including 'hello' but got 'testing'");
}
function use(){
chai.use(function (_chai, utils) {
_chai.can.use.any();
});
}
function respondTo() {
function Foo() {};
var bar = {};
+3
View File
@@ -8,6 +8,9 @@ declare module chai {
function expect(target: any): Expect;
// Provides a way to extend the internals of Chai
function use(fn: (chai: any, utils: any) => void);
interface ExpectStatic {
(target: any): Expect;
}