jquery-expect
jquery-expect copied to clipboard
Feature Request: Allow assertions on jQuery custom data
trafficstars
Howdy there, would be nice if I could have assertions on jQuery custom data attached to elements. For example
<div id="test" data-foo="bar"></div>
$expect("#test").to.have.data();
$expect("#test").to.have.data("foo");
$expect("#test").to.have.data("foo", "bar");
I imagine it's API would behave a lot like .attr(). Any thoughts?