diff --git a/test/yargs.js b/test/yargs.js index 4f5de3449..40606b7db 100644 --- a/test/yargs.js +++ b/test/yargs.js @@ -522,7 +522,7 @@ describe('yargs dsl tests', () => { builder (yargs) { return yargs }, handler (argv) {} }) - }).to.throw(/No command name given for module: { desc: 'A command with no name',\n {2}builder: \[Function(: builder)?],\n {2}handler: \[Function(: handler)?] }/) + }).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| )}/) }) })