nathanboktae / chai-dom

DOM assertions for the Chai assertion library using vanilla JavaScript
Other
76 stars 26 forks source link

Add regex support for `.class` assertion #54

Closed SevenOutman closed 3 years ago

SevenOutman commented 3 years ago

Assert a class name against certain regex.

parse('<div class="foo shazam  baz"></div>').should.have.class(/foo/)
nathanboktae commented 3 years ago

Great, thanks for the contribution!