chore(cloudcmd) lint: indexOf -> includes

This commit is contained in:
coderaiser 2020-06-06 19:20:17 +03:00
parent c30bc69f5d
commit 8bb746aa0e
8 changed files with 14 additions and 26 deletions

View file

@ -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();
});