Skip to content

Instantly share code, notes, and snippets.

@simon-p-r
Created June 1, 2015 13:14
Show Gist options
  • Save simon-p-r/67565b620bd5d4a5a83d to your computer and use it in GitHub Desktop.
Save simon-p-r/67565b620bd5d4a5a83d to your computer and use it in GitHub Desktop.
Lab problem
5 tests complete
Test duration: 27 ms
Assertions count: 9 (verbosity: 1.80)
No global variable leaks detected
Coverage: 100.00%
Linting results: No issues
@simon-p-r
Copy link
Author

This is not displayed in console when running tests

@simon-p-r
Copy link
Author

D:\Modules\require-plus>npm test

> require-plus@0.1.0 test D:\Modules\require-plus
> lab -a code -v -L -t 100

require-plus
  V 1) should throw an error when constructed without new (13 ms)
  V 2) should throw an error when constructed without options object (1 ms)
  V 3) should throw an error when directory does not exists (22 ms)
  V 4) should apply defaults to options object (2 ms)
  V 5) should loop through array of directories (2 ms)
  V 6) should filter directories (3 ms)
  V 7) should throw on invalid require (2 ms)
  V 8) should build a moduleSet object (2 ms)

@simon-p-r
Copy link
Author

This is what is displayed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment