I'm using the jQuery-Jasmine extension to spy on events but i can't get the correct syntax.
// Get a button
var $button = $( '#ai1ec_subscribe_users' );
// Call the function
utility_functions.block_all_submit_and_ajax( $button.get(0) );
// check that all submit are disabled
var first_multi = $( '.ai1ec-facebook-refresh-multiselect:first' );
spyOnEvent( '.ai1ec-facebook-refresh-multiselect:first', 'click' );
first_multi.click();
expect( 'click' ).toHaveBeenTriggeredOn( '.ai1ec-facebook-refresh-multiselect:first' );
This gives me back an error and
Expected event click to have been triggered on .ai1ec-facebook-refresh-multiselect:first
but i clicked it on the row before the check so i must be doing something wrong.
--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jasmine-js/-/hrioNrjvG8QJ.
To post to this group, send email to jasmi...@googlegroups.com.
To unsubscribe from this group, send email to jasmine-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jasmine-js?hl=en.
Alberto.
To unsubscribe from this group, send email to jasmine-js+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jasmine-js?hl=en.
--
Alberto Leal
@albertoleal
To view this discussion on the web visit https://groups.google.com/d/msg/jasmine-js/-/-3RZQgJcFJAJ.
To unsubscribe from this group, send email to jasmine-js+...@googlegroups.com.