mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add optional 'message' parameter to chai.expect.
As noted at http://chaijs.com/guide/styles/#expect: "Expect also allows you to include arbitrary messages to prepend to any failed assertions that might occur."
This commit is contained in:
Vendored
+1
-1
@@ -6,7 +6,7 @@
|
||||
|
||||
declare module chai {
|
||||
|
||||
function expect(target: any): Expect;
|
||||
function expect(target: any, message?: string): Expect;
|
||||
|
||||
// Provides a way to extend the internals of Chai
|
||||
function use(fn: (chai: any, utils: any) => void);
|
||||
|
||||
Reference in New Issue
Block a user