mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 05:20:25 +00:00
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:
Vendored
+8
@@ -24,6 +24,14 @@ declare namespace Chai {
|
||||
value(text: string): Assertion;
|
||||
|
||||
}
|
||||
|
||||
interface Include {
|
||||
|
||||
text(text: string|string[]): Assertion;
|
||||
|
||||
html(text: string|string[]): Assertion;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user