mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
chore(cloudcmd) lint: indexOf -> includes
This commit is contained in:
parent
c30bc69f5d
commit
8bb746aa0e
8 changed files with 14 additions and 26 deletions
|
|
@ -215,7 +215,7 @@ test('cloudcmd: route: not found', async (t) => {
|
|||
options,
|
||||
});
|
||||
|
||||
t.ok(~body.indexOf('ENOENT: no such file or directory'), 'should return error');
|
||||
t.ok(body.includes('ENOENT: no such file or directory'), 'should return error');
|
||||
t.end();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue