mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
@@ -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 = {};
|
||||
|
||||
Vendored
+3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user