Skip to content

Instantly share code, notes, and snippets.

@strugee
Created November 8, 2017 20:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save strugee/0d0c9318aad381cd49d675379fb7d87b to your computer and use it in GitHub Desktop.
Sample Perjury output from stratic-handle-offset's test suite
alex@cannot-bind ‹ master ●● › : ~/Development/pump.io
[0] % cd ../stratic-handle-offset
alex@cannot-bind ‹ master ● › : ~/Development/stratic-handle-offset
[0] % npm test
> stratic-handle-offset@1.0.0 test /home/alex/Development/stratic-handle-offset
> nyc -r lcov perjury test.js
stratic-handle-offset module
When we mock out Date#getTimezoneOffset
it works: OK
it behaves how we expect: OK
When we mock out Date#getTimezoneOffset and we require the module
it works: OK
When we mock out Date#getTimezoneOffset and we require the module and we pass it a time object
it works: OK
it returns a moment object: OK
the day is correct: OK
the month is correct: OK
the year is correct: OK
SUMMARY
Broken: 0
Successes: 8
Failures: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment