You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PC4762:jasmine newgyu$ gulp test
[21:00:04] Using gulpfile ~/temp/jasmine/gulpfile.js
[21:00:04] Starting 'test'...
[21:00:04] Finished 'test' after 15 ms
Running 2 specs.
example
use spy: failed
unuse spy: passed
Failures:
1) example use spy
1.1) TypeError: undefined is not a function
TypeError: undefined is not a function
at Object.<anonymous> (/Users/newgyu/temp/jasmine/test/ExampleSpec.js:6:26)
2 specs, 1 failure
Finished in 0.004 seconds
Sorry! I had been a misunderstanding. My test code is wrong.
jasmine-node is compatible jasmine1.3. But,gulp-jasmine is compatible jasmine2.x. (minijasminenode that is dependent on gulp-jasmine is compatible jasmine2)
How to write callFake has been changed from jasmine2, I should have been written as follows.
The success when using jasmine-node command
But, it fails when using gulp-jasmine
Sample Code: https://gist.github.com/NewGyu/64ddef2561fdee2b63af
The text was updated successfully, but these errors were encountered: