I have a couple of functions that use jQuery. And I'm having trouble making sense of the proper way to test them with jQuery-Chai in Mocha+Chai.
I see the list of assertions in the jQuery-Chai plugin. However, I don't understand where we get the DOM data to run those assertions?
Ideally I want to insert a line of html. Run the function on it. And use the jQuery-Chai assertion to validate.
Can someone help clear up where I would include the fixture to test these functions?
Thanks in advance.
Using: Testem with Mocha+Chai.