mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-08 09:17:06 +08:00
Added text to Include to allow contain.text
This commit is contained in:
@@ -30,6 +30,7 @@ expect(wrapper).to.have.ref("test");
|
||||
expect(wrapper).to.be.selected();
|
||||
expect(wrapper).to.have.tagName("div");
|
||||
expect(wrapper).to.have.text("");
|
||||
expect(wrapper).to.contain.text("");
|
||||
expect(wrapper).to.have.type(Test);
|
||||
expect(wrapper).to.have.value("test");
|
||||
expect(wrapper).to.have.attr("test", "test");
|
||||
|
||||
6
types/chai-enzyme/index.d.ts
vendored
6
types/chai-enzyme/index.d.ts
vendored
@@ -26,6 +26,12 @@ declare namespace Chai {
|
||||
* @param code
|
||||
*/
|
||||
(selector: EnzymeSelector): Assertion;
|
||||
|
||||
/**
|
||||
* Assert that the given wrapper has the supplied text:
|
||||
* @param str
|
||||
*/
|
||||
text(str?: string): Assertion;
|
||||
}
|
||||
interface Assertion {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user