1
0
Fork 0
mirror of https://github.com/VueTorrent/VueTorrent.git synced 2025-03-24 02:20:44 +03:00
VueTorrent/tests/helpers.js

13 lines
334 B
JavaScript
Raw Normal View History

2021-01-27 13:24:23 +01:00
import { createLocalVue, mount } from '@vue/test-utils'
import Vuetify from 'vuetify'
export function setup(component, propsData) {
const localVue = createLocalVue() // because of vuetify, we should use a localVue instance
const vuetify = new Vuetify()
return mount(component, {
localVue,
vuetify,
propsData
})
}