mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 18:18:53 +08:00
fix tests
This commit is contained in:
@@ -18,7 +18,7 @@ describe('tooltipMixin.js', () => {
|
||||
template: '<div :style="tooltipStyle"></div>',
|
||||
mixins: [tooltipMixin]
|
||||
}
|
||||
const wrapper = mount(component)
|
||||
const wrapper = mount(component, { attachTo: container })
|
||||
expect(wrapper.find('div').isVisible()).to.equal(false)
|
||||
})
|
||||
|
||||
@@ -108,7 +108,7 @@ describe('tooltipMixin.js', () => {
|
||||
template: '<div :style="tooltipStyle"></div>',
|
||||
mixins: [tooltipMixin]
|
||||
}
|
||||
const wrapper = mount(component)
|
||||
const wrapper = mount(component, { attachTo: container })
|
||||
await wrapper.vm.showTooltip(new MouseEvent('mouseenter', {
|
||||
clientX: 10,
|
||||
clientY: 20
|
||||
|
||||
Reference in New Issue
Block a user