chore(cloudcmd) lint

This commit is contained in:
coderaiser 2020-12-03 18:27:59 +02:00
parent 1e853b040d
commit 4c7f8cc6b6
10 changed files with 16 additions and 37 deletions

View file

@ -89,7 +89,7 @@ test('util: findObjByNameInArr: array', (t) => {
test('util: getRegExp', (t) => {
const reg = getRegExp('hel?o.*');
t.deepEqual(reg, RegExp('^hel.?o\\..*$'), 'should return regexp');
t.deepEqual(reg, /^hel.?o\..*$/, 'should return regexp');
t.end();
});
@ -103,7 +103,7 @@ test('util: getRegExp: dots', (t) => {
test('util: getRegExp: no', (t) => {
const reg = getRegExp('');
t.deepEqual(reg, RegExp('^$'), 'should return regexp');
t.deepEqual(reg, /^$/, 'should return regexp');
t.end();
});