Created
May 31, 2018 15:04
-
-
Save mattcollier/00f8976169b9f5938128386756a7c68a to your computer and use it in GitHub Desktop.
assert-plus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const boo = 'hello'; | |
assert.bool(boo, 'boo'); | |
AssertionError [ERR_ASSERTION]: boo (bool) is required | |
at new AssertionError (internal/assert.js:268:11) | |
at _toss (/home/matt/dev/t3/node_modules/assert-plus/assert.js:22:11) | |
at Function.out.(anonymous function) [as bool] (/home/matt/dev/t3/node_modules/assert-plus/assert.js:122:17) | |
at Object.<anonymous> (/home/matt/dev/t3/index.js:4:8) | |
at Module._compile (internal/modules/cjs/loader.js:702:30) | |
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10) | |
at Module.load (internal/modules/cjs/loader.js:612:32) | |
at tryModuleLoad (internal/modules/cjs/loader.js:551:12) | |
at Function.Module._load (internal/modules/cjs/loader.js:543:3) | |
at Function.Module.runMain (internal/modules/cjs/loader.js:744:10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const boo = 'hello'; | |
assert.bool(boo); | |
AssertionError [ERR_ASSERTION]: undefined (bool) is required | |
at new AssertionError (internal/assert.js:268:11) | |
at _toss (/home/matt/dev/t3/node_modules/assert-plus/assert.js:22:11) | |
at Function.out.(anonymous function) [as bool] (/home/matt/dev/t3/node_modules/assert-plus/assert.js:122:17) | |
at Object.<anonymous> (/home/matt/dev/t3/index.js:4:8) | |
at Module._compile (internal/modules/cjs/loader.js:702:30) | |
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10) | |
at Module.load (internal/modules/cjs/loader.js:612:32) | |
at tryModuleLoad (internal/modules/cjs/loader.js:551:12) | |
at Function.Module._load (internal/modules/cjs/loader.js:543:3) | |
at Function.Module.runMain (internal/modules/cjs/loader.js:744:10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment