Skip to content

Commit c294d1b

Browse files
BridgeARBenjamin E. Coe
authored andcommitted
test: accept differently formatted output (#1327)
1 parent ac3f10c commit c294d1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/yargs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ describe('yargs dsl tests', () => {
522522
builder (yargs) { return yargs },
523523
handler (argv) {}
524524
})
525-
}).to.throw(/No command name given for module: { desc: 'A command with no name',\n {2}builder: \[Function(: builder)?],\n {2}handler: \[Function(: handler)?] }/)
525+
}).to.throw(/No command name given for module: {(\n )? desc: 'A command with no name',\n {2}builder: \[Function(: builder)?],\n {2}handler: \[Function(: handler)?](\n| )}/)
526526
})
527527
})
528528

0 commit comments

Comments
 (0)