refactor: move utils and cleanup test helpers (#10261)

This commit is contained in:
Saul-Mirone
2025-02-18 14:03:51 +00:00
parent faf6e2c79f
commit 2f04e3180c
22 changed files with 38 additions and 111 deletions

View File

@@ -0,0 +1,6 @@
/**
* Return `true` if the element has class name in the class list.
*/
export function hasClassNameInList(element: Element, classList: string[]) {
return classList.some(className => element.classList.contains(className));
}

View File

@@ -1,4 +1,5 @@
export * from './checker.js';
export * from './has-classname-in-list.js';
export * from './point-to-block.js';
export * from './point-to-range.js';
export * from './query.js';