Skip to content
Snippets Groups Projects
Commit b916a519 authored by Erik Borgeteien Hansen's avatar Erik Borgeteien Hansen
Browse files

fix test with mock of store

parent 9e52fcfe
No related branches found
No related tags found
1 merge request!88Community admin
Pipeline #180154 failed
import { shallowMount } from "@vue/test-utils";
import CommunityHamburger from "@/components/CommunityComponents/CommunityHamburger.vue";
import { route, router, $route, $router } from "../../mock-router";
import {
route,
router,
$route,
$router,
store,
$store,
} from "../../mock-router";
describe("CommunityHamburger elements rendering", () => {
let wrapper;
beforeEach(() => {
wrapper = shallowMount(CommunityHamburger, {
//passing prop to component
props: {
adminStatus: true,
community: {
communityId: 1,
name: "String",
description: "String",
visibility: 0,
location: "String",
picture: "String",
},
},
global: {
mocks: {
store,
$store,
route,
router,
$route,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment