chore(cloudcmd) lint

This commit is contained in:
coderaiser 2022-05-11 14:21:25 +03:00
parent 95ede62e81
commit 6af8f19bb6
7 changed files with 13 additions and 13 deletions

View file

@ -27,14 +27,14 @@ const {request} = require('serve-once')(cloudcmd, {
test('cloudcmd: markdown: error', async (t) => {
const {body} = await request.get('/api/v1/markdown/not-found');
t.ok(/ENOENT/.test(body), 'should not found');
t.match(body, 'ENOENT', 'should not found');
t.end();
});
test('cloudcmd: markdown: relative: error', async (t) => {
const {body} = await request.get('/api/v1/markdown/not-found?relative');
t.ok(/ENOENT/.test(body), 'should not found');
t.match(body, 'ENOENT', 'should not found');
t.end();
});