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:
Kent Skinner
2014-01-20 11:03:34 -08:00
parent 44870d3f9c
commit 8166bc0ae3
+1 -1
View File
@@ -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);