diff --git a/server/markdown/index.spec.js b/server/markdown/index.spec.js index 60fff869..d6e9c338 100644 --- a/server/markdown/index.spec.js +++ b/server/markdown/index.spec.js @@ -71,7 +71,7 @@ test('cloudcmd: markdown: put: error', async (t) => { const [e] = await tryToCatch(_markdown, name, '/', mdStream); - t.match(e.message, /ENOENT: no such file or directory/, 'should emit error'); + t.match(e.message, 'ENOENT: no such file or directory', 'should emit error'); t.end(); }); diff --git a/server/route.spec.js b/server/route.spec.js index dce63b15..1632d9c9 100644 --- a/server/route.spec.js +++ b/server/route.spec.js @@ -220,7 +220,7 @@ test('cloudcmd: route: not found', async (t) => { options, }); - t.match(body, /ENOENT: no such file or directory/, 'should return error'); + t.match(body, 'ENOENT: no such file or directory', 'should return error'); t.end(); });