Add trimmed flag to chai-dom

This commit is contained in:
simon 2018-09-20 18:01:26 +02:00
parent 14d0a6329a
commit ca0f99ff64
2 changed files with 3 additions and 0 deletions

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;

View File

@ -35,6 +35,8 @@ declare namespace Chai {
displayed: Assertion;
trimmed: Assertion;
}
interface Include {