Skip to content

Instantly share code, notes, and snippets.

@anthony-telljohann
Created August 25, 2017 18:40
Show Gist options
  • Save anthony-telljohann/99041a511a1b4e724caf4e6f7c9de01d to your computer and use it in GitHub Desktop.
Save anthony-telljohann/99041a511a1b4e724caf4e6f7c9de01d to your computer and use it in GitHub Desktop.
> cross-env NODE_ENV=test nyc mocha test/unit/**/*.js
add
√ should be a function
√ should return a promise
√ should resolve a number
3 passing (37ms)
----------|----------|----------|----------|----------|----------------|
File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines |
----------|----------|----------|----------|----------|----------------|
All files | 100 | 100 | 100 | 100 | |
add.js | 100 | 100 | 100 | 100 | |
----------|----------|----------|----------|----------|----------------|
=============================== Coverage summary ===============================
Statements : 100% ( 5/5 )
Branches : 100% ( 0/0 )
Functions : 100% ( 3/3 )
Lines : 100% ( 3/3 )
================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment