gradido/admin/src/App.spec.js
2021-11-24 18:34:34 +01:00

35 lines
556 B
JavaScript

import { shallowMount } from '@vue/test-utils'
import App from './App'
const localVue = global.localVue
const stubs = {
RouterView: true,
}
const mocks = {
$store: {
state: {
token: null,
},
},
}
describe('App', () => {
let wrapper
const Wrapper = () => {
return shallowMount(App, { localVue, stubs, mocks })
}
describe('shallowMount', () => {
beforeEach(() => {
wrapper = Wrapper()
})
it('has a div with id "app"', () => {
expect(wrapper.find('div#app').exists()).toBeTruthy()
})
})
})