learn-co-students / javascript-intro-to-functions-lab-js-apply-000 Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
I have had several questions from students who were confused because the code in index-test.js
doesn't match what is described in the lesson.
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.