Hi all:
I'm currently trying to mock the following method using Jack. The code example is as below:
var ID = "id";
$('#' + ID + ' > div > table').each(function) {
var nodeSpan = $(this).find('span.' + NODE_INDICATORS)[0];
.
.
.
});
How should I approach it? Are there jQuery/QUnit functions that allows me to create a DOM node/element which I can use to mock the find method? Or can this be done easily with Jack?
Thanks.