chore(cloudcmd) lint

This commit is contained in:
coderaiser 2021-10-19 15:59:57 +03:00
parent 85015881d0
commit 3172759ca0
6 changed files with 10 additions and 0 deletions

View file

@ -8,12 +8,14 @@ const {isContainClass} = require('./dom-tree');
test('dom: isContainClass: no element', (t) => {
const [e] = tryCatch(isContainClass);
t.equal(e.message, 'element could not be empty!', 'should throw when no element');
t.end();
});
test('dom: isContainClass: no className', (t) => {
const [e] = tryCatch(isContainClass, {});
t.equal(e.message, 'className could not be empty!', 'should throw when no element');
t.end();
});