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.
- 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
xin front of the pending block, like
- Adding an
xin front of the
describe()block marks all of the specs inside as "pending"
You need to sign up for Treehouse in order to download course files.Sign up