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

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

No files matched your search

@@ -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));
}
@@ -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';