Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

I am getting an error "createSpyObj requires a non-empty array" with running unit tests, which were executed perfectly before

// Make sure you don't see empty arrays like so when using jasmine.createSpyObj
// The array is supposed to be an array of strings of public methods
// you want to mock.

jasmine.createSpyObj([]);
jasmine.createSpyObj('SomeName', []);
 
PREVIOUS NEXT
Tagged: #I #error #requires #running #unit #executed #perfectly
ADD COMMENT
Topic
Name
3+4 =