spyon not defined and jasmine not defined

1,188 views
Skip to first unread message

rookiecoder

unread,
Nov 16, 2015, 10:30:09 AM11/16/15
to Jasmine
I am using karma-jasmine 0.3.6 and jasmine-core -2.3.4 for my project.When I use spyon function in my spec files and run karma it shows that spyon is not defined.But without spyon function my tests are working.When i try to create spy event using jasmine.createspy('spy').It says that jasmine is not defined.Please help me fix this problem.

Ben Loveridge

unread,
Nov 16, 2015, 9:10:54 PM11/16/15
to jasmi...@googlegroups.com
Not seeing your code or errors it is hard to tell much, but one thing you should do is make sure you are using createSpy -- note the capital S in the method name. 


Ben Loveridge (phone--sorry for typos)


On Mon, Nov 16, 2015 at 8:30 AM, rookiecoder <m.avina...@itbhu.ac.in> wrote:

I am using karma-jasmine 0.3.6 and jasmine-core -2.3.4 for my project.When I use spyon function in my spec files and run karma it shows that spyon is not defined.But without spyon function my tests are working.When i try to create spy event using jasmine.createspy('spy').It says that jasmine is not defined.Please help me fix this problem.

--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jasmine-js+...@googlegroups.com.
To post to this group, send email to jasmi...@googlegroups.com.
Visit this group at http://groups.google.com/group/jasmine-js.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages