Test jQuery click event with Jasmine

98
May 05, 2018, at 11:25 PM

I have a hidden menu which appear when I click on the burger icon. I want to test the event handler with Jasmine. I am very new to Jasmine and I couldn't figure out how.

Here is my jQuery code:

menuIcon.on('click', function() {
        $('body').toggleClass('menu-hidden');
    });

Could you please help me?

READ ALSO
Jquery html() not working more then once

Jquery html() not working more then once

I am new in jquerywhen i choose league 1 or 2 once, html() works but twice, not working

97
Django instert utf8 text in textarea editor

Django instert utf8 text in textarea editor

I have a utf8 text that I'm trying to insert into a textareaThe code is pretty simple:

147
Remove the current ( random ) image from list jQuery

Remove the current ( random ) image from list jQuery

I'm trying to use effect to show images randomly but when the first image is visible, I want to remove it from the list to prevent duplicate ( reparation )

173