Closed abhinavgujjar closed 9 years ago
spyOn
will be called directly, createSpyObj
is a Child-Function of jasmine, and should be used that way:
var spyObj = jasmine.createSpyObj();
yep - works. thank you! Maybe something to be included in the sample specs ? not sure if already present.
this is standard jasmine syntax, and should be (and is) documented there
ah ok. My bad. It was working when I was using jasmine-node to run it and never bothered to read the manual. Thanks for the quick help!
On Thu, Dec 11, 2014 at 8:52 PM, Bastian Behrens notifications@github.com wrote:
this is standard jasmine syntax, and should be (and is) documented there http://jasmine.github.io/2.0/introduction.html#section-Spies:_%3Ccode%3EcreateSpyObj%3C/code
— Reply to this email directly or view it on GitHub https://github.com/jasmine-contrib/grunt-jasmine-node/issues/59#issuecomment-66633987 .
I tried adding a single line to the existing sample spec at line 13
var spyObj = createSpyObj();
This throws error
Message: ReferenceError: createSpyObj is not defined
spyOn works; just spy creation functions don't work.