Add include method definitions

chai-dom lets you chain like this:

expect(element).not.to.contain.text('Open');

Extend interface Include to reflect this.
This commit is contained in:
Luke
2016-08-06 15:33:57 -04:00
committed by GitHub
parent bc38caf4c4
commit 731a274a58
+8
View File
@@ -24,6 +24,14 @@ declare namespace Chai {
value(text: string): Assertion;
}
interface Include {
text(text: string|string[]): Assertion;
html(text: string|string[]): Assertion;
}
}