jquery-expect
jquery-expect copied to clipboard
Simple DOM assertion library
Assertion.prototype.html should `return this` just like Assertion.prototype.text and Assertion.prototype.contain.
Having spaces in hex codes breaks css assertions like `$expect('h2').to.have.css('color', 'blue');`
Would be nice to assert based on prop. (so far, only attr is supported, but they are not the same) My use case is that I'm checking for indeterminate checkboxes,...
Howdy there, would be nice if I could have assertions on jQuery custom data attached to elements. For example ``` html ``` ``` javascript $expect("#test").to.have.data(); $expect("#test").to.have.data("foo"); $expect("#test").to.have.data("foo", "bar"); ``` I...
`$e('div').to.have.css('border-radius', 10)`
The error `Cannot read properties of null (reading ‘1’)` is given when the `background-color` property is not defined. For example, consider ```js $expect('body').to.have.css('background-color', '#f9f9f9', 'Did you apply a background color...