diff --git a/packages/supertape/lib/cli.spec.js b/packages/supertape/lib/cli.spec.js index 8a01614..952ca14 100644 --- a/packages/supertape/lib/cli.spec.js +++ b/packages/supertape/lib/cli.spec.js @@ -34,7 +34,7 @@ test('supertape: cli: -r', async (t) => { const [[message]] = write.args; - t.ok(message.includes(`Cannot find module 'hello'`)); + t.match(message, RegExp(`Cannot find module 'hello'`)); t.end(); });