jquery-expect icon indicating copy to clipboard operation
jquery-expect copied to clipboard

Feature Request: Allow assertions on jQuery custom data

Open dominicbarnes opened this issue 12 years ago • 0 comments
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?

dominicbarnes avatar Feb 14 '13 23:02 dominicbarnes