Browse Source

fix(nc-gui): remove vuetify from sponsors test

pull/3572/head
braks 2 years ago
parent
commit
a25a017d60
  1. 4
      packages/nc-gui/components/general/Sponsors.test.ts

4
packages/nc-gui/components/general/Sponsors.test.ts

@ -1,16 +1,14 @@
import { mount } from '@vue/test-utils' import { mount } from '@vue/test-utils'
import { expect, test } from 'vitest' import { expect, test } from 'vitest'
import Sponsors from './Sponsors.vue' import Sponsors from './Sponsors.vue'
import { createVuetifyPlugin } from '~/plugins/vuetify'
import { createI18nPlugin } from '~/plugins/a.i18n' import { createI18nPlugin } from '~/plugins/a.i18n'
const mountComponent = async (nav: boolean) => { const mountComponent = async (nav: boolean) => {
const vuetify = createVuetifyPlugin()
const i18n = await createI18nPlugin() const i18n = await createI18nPlugin()
const wrapper = mount(Sponsors, { const wrapper = mount(Sponsors, {
global: { global: {
plugins: [vuetify, i18n], plugins: [i18n],
}, },
props: { props: {
nav, nav,

Loading…
Cancel
Save