mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
refactor: move utils and cleanup test helpers (#10261)
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user