Initial commit
This commit is contained in:
25
proxy-ui-app/tests/views/1_atoms/PageHeader.test.js
Normal file
25
proxy-ui-app/tests/views/1_atoms/PageHeader.test.js
Normal file
@@ -0,0 +1,25 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import { expect, test, describe } from 'vitest'
|
||||
import PageHeader from "@atoms/PageHeader.vue"
|
||||
import { createStore } from 'vuex'
|
||||
import {store as proxy} from '@/store/modules/proxy';
|
||||
|
||||
describe("tests PageHeader with vuex", () => {
|
||||
const store = createStore({
|
||||
plugins: [],
|
||||
modules: {
|
||||
proxy
|
||||
},
|
||||
})
|
||||
|
||||
test('tests PageHeader with vuex', async () => {
|
||||
const wrapper = mount(PageHeader, {
|
||||
global: {
|
||||
plugins: [store]
|
||||
}
|
||||
})
|
||||
|
||||
expect(wrapper.text()).toContain('На главную')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user