-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hi!
If someone will test VueVirtualDragList in component test using e.g. Vitest then this line will fail ->
Line 52 in ab5f10b
| const dom = 'WebKit|Moz|MS|O'.match(new RegExp('(' + pre + ')', 'i'))[1]; |
because
pre=undefined
For me it works when I add some default (webkit at last line)
const pre = (Array.prototype.slice
.call(styles)
.join('')
.match(/-(moz|webkit|ms)-/) ||
(styles.OLink === '' && ['', 'o']))[1] || 'webkit';So I'm thinking about how to handle it because otherwise it isn't possible to test components that use this library under the hood. WDYT?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working