mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Merge pull request #8112 from aleung/chai
chai: enable chain style calling to use()
This commit is contained in:
@@ -1097,6 +1097,12 @@ function use() {
|
||||
chai.use((_chai) => {
|
||||
_chai.can.use.any();
|
||||
});
|
||||
|
||||
// chain style: use mulptile plug-ins
|
||||
let expect = chai
|
||||
.use((_chai, util) => {})
|
||||
.use((_chai, util) => {})
|
||||
.expect;
|
||||
}
|
||||
|
||||
class Klass {
|
||||
|
||||
Vendored
+1
-1
@@ -17,7 +17,7 @@ declare module Chai {
|
||||
/**
|
||||
* Provides a way to extend the internals of Chai
|
||||
*/
|
||||
use(fn: (chai: any, utils: any) => void): any;
|
||||
use(fn: (chai: any, utils: any) => void): ChaiStatic;
|
||||
assert: AssertStatic;
|
||||
config: Config;
|
||||
AssertionError: typeof AssertionError;
|
||||
|
||||
Reference in New Issue
Block a user