mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Added text to Include to allow contain.text
This commit is contained in:
parent
cb2dbfbb50
commit
448d609ece
@ -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 {
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user