chore: lint

This commit is contained in:
coderaiser 2024-05-06 14:48:47 +03:00
parent 154b4bd627
commit 610ba8827f
5 changed files with 42 additions and 24 deletions

View file

@ -285,15 +285,17 @@ test('current-file: parseHrefAttribute', (t) => {
t.end();
});
function getDOM({
link = {},
getCurrentDirPath = stub(),
getCurrentDirName = stub(),
getByDataName = stub(),
isContainClass = stub(),
getCurrentType = stub(),
getCurrentPath = stub(),
} = {}) {
function getDOM(overrides = {}) {
const {
link = {},
getCurrentDirPath = stub(),
getCurrentDirName = stub(),
getByDataName = stub(),
isContainClass = stub(),
getCurrentType = stub(),
getCurrentPath = stub(),
} = overrides;
return {
getCurrentDirPath,
getCurrentDirName,