Add 'use' to chai and include a test

This commit is contained in:
Jacob Boland
2013-10-23 09:47:04 -07:00
parent b24f27d014
commit dd19153965
2 changed files with 8 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 = {};
+2
View File
@@ -8,6 +8,8 @@ declare module chai {
function expect(target: any): Expect;
function use(fn: (chai: any, utils: any) => void);
interface ExpectStatic {
(target: any): Expect;
}