Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed JavaScript Unit Testing!
You have completed JavaScript Unit Testing!
A nice feature of Mocha is that we can outline tests that need to be written before we’re ready to write them. So when you have an idea for a test, but you aren’t yet sure what it will look like, you can still communicate your idea to other developers and get started.
Resources
Video review
- To mark a test as “pending”, do not add a function as a second argument
- You can also mark tests as "pending" by typing an
x
in front of the pending block, likexdescribe()
orxit()
- Adding an
x
in front of thedescribe()
block marks all of the specs inside as "pending"
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up