mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
95ede62e81
commit
6af8f19bb6
7 changed files with 13 additions and 13 deletions
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue