Created
February 12, 2020 00:38
-
-
Save ccarruitero/02cce7e55a515d2a2248594f2ea6907d to your computer and use it in GitHub Desktop.
workshopper-adventure trace
This file contains hidden or 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
> cat test/adventure.test.js | |
const LegacyAdventure = require('../adventure') | |
const test = require('tape') | |
test('LegacyAdventure', (t) => { | |
const workshopper = new LegacyAdventure('test-workshopper') | |
t.plan(2) | |
t.ok(workshopper) | |
t.equal(workshopper.title, 'test-workshopper') | |
}) | |
> standard && tape test/**/* | |
TAP version 13 | |
# LegacyAdventure | |
/home/pavle/tmp/workshopper-adventure/node_modules/explicit/plugin/_util/argValidator.js:37 | |
throw res.error | |
^ | |
Error [ValidationError]: child "commands" fails because ["commands" at position 4 fails because [child "filter" fails because ["filter" must be a Function]]] | |
at Object.exports.process (/home/pavle/tmp/workshopper-adventure/node_modules/@hapi/joi/lib/errors.js:202:19) | |
at internals.Object._validateWithOptions (/home/pavle/tmp/workshopper-adventure/node_modules/@hapi/joi/lib/types/any/index.js:763:31) | |
at module.exports.internals.Any.root.validate (/home/pavle/tmp/workshopper-adventure/node_modules/@hapi/joi/lib/index.js:145:23) | |
at applyObject (/home/pavle/tmp/workshopper-adventure/node_modules/explicit/plugin/_util/argValidator.js:34:19) | |
at Object.applyArray (/home/pavle/tmp/workshopper-adventure/node_modules/explicit/plugin/_util/argValidator.js:61:12) | |
at method.valid.addCommands (/home/pavle/tmp/workshopper-adventure/node_modules/explicit/plugin/assert/index.js:20:24) | |
at method.valid.$ (/home/pavle/tmp/workshopper-adventure/node_modules/commandico/commandico.js:69:19) | |
at applyObject (/home/pavle/tmp/workshopper-adventure/node_modules/explicit/plugin/_util/argValidator.js:45:19) | |
at Object.applyArray (/home/pavle/tmp/workshopper-adventure/node_modules/explicit/plugin/_util/argValidator.js:61:12) | |
at method.valid.loadCommands (/home/pavle/tmp/workshopper-adventure/node_modules/explicit/plugin/assert/index.js:20:24) { | |
isJoi: true, | |
name: 'ValidationError', | |
details: [ | |
{ | |
message: '"filter" must be a Function', | |
path: [Array], | |
type: 'function.base', | |
context: [Object] | |
} | |
], | |
_object: { | |
commands: [ | |
[Object], [Object], | |
[Object], [Object], | |
[Object], [Object], | |
[Object], [Object], | |
[Object], [Object], | |
[Object], [Object], | |
[Object], [Object], | |
[Object], [Object], | |
[Object] | |
] | |
}, | |
annotate: [Function (anonymous)] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment