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
1e853b040d
commit
4c7f8cc6b6
10 changed files with 16 additions and 37 deletions
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue