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
85015881d0
commit
3172759ca0
6 changed files with 10 additions and 0 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue