Merge pull request #1169 from daptiv/update-chai

Update chai
This commit is contained in:
basarat committed 2013-10-23 17:34:30 -07:00
commit 06944491b0
2 files changed
+9

No files matched your search

+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;
}