Merge pull request #29055 from simonihmig/chai-dom-trimmed

Add trimmed flag to chai-dom
This commit is contained in:
Jesse Trinity
2018-09-20 16:08:42 -07:00
committed by GitHub
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -13,6 +13,7 @@ function test() {
expect(testElement).to.have.id('id');
expect(testElement).to.have.html('foo');
expect(testElement).to.have.text('foo');
expect(testElement).to.have.trimmed.text('foo');
expect(testElement).to.have.text(['foo', 'bar']);
expect(testElement).to.have.value('foo');
expect(testElement).to.be.empty;
+2
View File
@@ -35,6 +35,8 @@ declare namespace Chai {
displayed: Assertion;
trimmed: Assertion;
}
interface Include {