mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
35 lines
556 B
JavaScript
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()
|
|
})
|
|
})
|
|
})
|