#49 : Add unit tests

This commit is contained in:
Vadim
2021-08-08 14:30:12 +03:00
parent 2acca5014b
commit 93405d54d8
2 changed files with 20 additions and 2 deletions

View File

@@ -7,14 +7,13 @@ export function removeResizeEventListener(cb) {
}
export function createDispatcher(source) {
function dispatch(event, data) {
return function (event, data) {
source.dispatchEvent(
new CustomEvent(event, {
detail: data,
})
)
}
return dispatch
}
export function getIsTouchable() {