angularjs - Jasmine unit tests -


hi new jasmine.

can body suggest write test case code in angularjs

$('#issuedatespan').click(function(event) {   event.preventdefault();   $('#datetimepickerissue').data('datetimepicker').show(); }); 

if understood correctly, want tests datetimepicker displayed.

have tried like:

describe('visibility', function() {      it('datetimepicker displayed', function() {       expect(element(by.id('datetimepickerissue').is(':visible')).tobe(true);        });      }); 

or

describe('visibility', function() {          it('datetimepicker displayed', function() {             expect($('#datetimepicker').is(':visible')).tobe(true);           });          }); 

Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -