1
0
Fork 0
mirror of https://github.com/VueTorrent/VueTorrent.git synced 2025-04-02 14:55:12 +03:00
VueTorrent/tests/helpers.js
2021-01-27 13:24:23 +01:00

13 lines
No EOL
334 B
JavaScript

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
})
}