-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Description
Students are reporting and I can verify that these tests are showing Error: spy was never called with [ 'HELLO' ] for both functions.
Tests were updated two days ago and so it seems like an issue with spyOn.
output in terminal
> [email protected] test /home/hs/code/jw-garrison/javascript-intro-to-functions-lab-js-apply-000
> mocha -R mocha-multi --reporter-options nyan=-,json=.results.json
5 -_-_-_-__,------,
2 -_-_-_-__| /\_/\
0 -_-_-_-_~|_( x .x)
-_-_-_-_ "" ""
5 passing (3s)
2 failing
1) logShout(string) calls console.log() its one argument in all caps:
Error: spy was never called with [ 'HELLO' ]
at assert (node_modules/expect/lib/assert.js:29:9)
at Expectation.toHaveBeenCalledWith (node_modules/expect/lib/Expectation.js:333:28)
at Context.<anonymous> (test/index-test.js:24:17)
2) logWhisper(string) calls console.log() its one argument in all lowercase:
Error: spy was never called with [ 'hello' ]
at assert (node_modules/expect/lib/assert.js:29:9)
at Expectation.toHaveBeenCalledWith (node_modules/expect/lib/Expectation.js:333:28)
at Context.<anonymous> (test/index-test.js:36:17)
Metadata
Metadata
Assignees
Labels
No labels