You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varspy=sinon.spy();varmenu=document.querySelector('#menu');Gator(menu).on('click','> .menu-title',function(){expect(event.target.parentNode).to.equal(menu);});vartitles=menu.querySelectorAll('.menu-title');for(vari=0;i<titles.length;i++){dispatch('customEvent',titles[i]);}expect(spy.callCount).to.equal(1,'spy call count after dispatching events on every .menu-title');
This is supported in jQuery and a pull request to add this functionality has been sent against ftdomdelegate Financial-Times/ftdomdelegate#50
The text was updated successfully, but these errors were encountered:
With markup such as:
The following test should pass:
This is supported in jQuery and a pull request to add this functionality has been sent against ftdomdelegate Financial-Times/ftdomdelegate#50
The text was updated successfully, but these errors were encountered: