From 731a274a5878caaea8629aaf9aee0d9e65cbc2aa Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 6 Aug 2016 15:33:57 -0400 Subject: [PATCH] Add include method definitions chai-dom lets you chain like this: expect(element).not.to.contain.text('Open'); Extend interface Include to reflect this. --- chai-dom/chai-dom.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chai-dom/chai-dom.d.ts b/chai-dom/chai-dom.d.ts index 397bc17cb4..64cf97f516 100644 --- a/chai-dom/chai-dom.d.ts +++ b/chai-dom/chai-dom.d.ts @@ -24,6 +24,14 @@ declare namespace Chai { value(text: string): Assertion; } + + interface Include { + + text(text: string|string[]): Assertion; + + html(text: string|string[]): Assertion; + + } }