I am new to Jasmine2 JS framework. I use the Jasmine.js framework to create test suites for my application developed as part of Backbone.js.
When I create test cases for the backbone.js → views home.js file, one of my view.sys functions has
event.stopPropagation();
and another function has
event.preventDefault();
If my function Backbone.js -> views has event.stopPropagation (); and event.preventDefault (); my test packages cause an error as shown below:
TypeError: unable to read property "stopPropagation" from undefined
Please help me how to write test cases for my views function, which has event.stopPropagation(); and event.preventDefault();
or
, event.stopPropagation(); event.preventDefault(); Jasmine.js?
, , - .
.