Pass tests
This commit is contained in:
@@ -1,9 +1,21 @@
|
||||
import { mount, RouterLinkStub } from "@vue/test-utils";
|
||||
import GridItem from "@/components/GridItem.vue";
|
||||
import { mount, RouterLinkStub, createLocalVue } from "@vue/test-utils";
|
||||
import Vuex from "vuex";
|
||||
import GridItem from "@/components/Grid/GridItem.vue";
|
||||
|
||||
const localVue = createLocalVue();
|
||||
localVue.use(Vuex);
|
||||
|
||||
describe("Test GridItem.", () => {
|
||||
let store;
|
||||
|
||||
beforeEach(() => {
|
||||
store = new Vuex.Store();
|
||||
});
|
||||
|
||||
it("checks link.", async () => {
|
||||
const wrapper = mount(GridItem, {
|
||||
store,
|
||||
localVue,
|
||||
propsData: {
|
||||
item: {
|
||||
id: 3,
|
||||
|
||||
Reference in New Issue
Block a user