From 8166bc0ae34d6b128a2ba0b885a330399f21985e Mon Sep 17 00:00:00 2001 From: Kent Skinner Date: Mon, 20 Jan 2014 11:03:34 -0800 Subject: [PATCH] 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." --- chai/chai.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chai/chai.d.ts b/chai/chai.d.ts index 059e835b84..6774a932fa 100644 --- a/chai/chai.d.ts +++ b/chai/chai.d.ts @@ -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);