Skip to content
Snippets Groups Projects
Commit 0bbd3823 authored by Gilgard's avatar Gilgard
Browse files

lint

parent b5ac6cce
No related branches found
No related tags found
1 merge request!80View tests
Pipeline #179384 failed
<template> <template>
<div class="flex items-center justify-between mx-4"> <div class="flex items-center justify-between mx-4">
<router-link <router-link
:to="'/community/' + community.communityId" :to="'/community/' + community.communityId"
class="flex-1 min-w-0"> class="flex-1 min-w-0"
>
<h2 <h2
class="text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate" class="text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate"
> >
......
...@@ -27,7 +27,10 @@ ...@@ -27,7 +27,10 @@
v-show="dropdown" v-show="dropdown"
class="z-10 w-44 text-base list-none bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700" class="z-10 w-44 text-base list-none bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700"
> >
<ul class="py-1 absolute bg-white ring-1 ring-gray-300 rounded-xl" aria-labelledby="dropdownDefault"> <ul
class="py-1 absolute bg-white ring-1 ring-gray-300 rounded-xl"
aria-labelledby="dropdownDefault"
>
<li> <li>
<router-link <router-link
to="" to=""
......
// route id param for pages that require routing // route id param for pages that require routing
// id = 1, user = test testesen // id = 1, user = test testesen
export const route = { export const route = {
params: { params: {
id: 1 id: 1,
} },
}; };
export const router = { export const router = {
push: jest.fn() push: jest.fn(),
}; };
export const $route = { export const $route = {
params: { params: {
id: 1 id: 1,
} },
}; };
export const $router = { export const $router = {
push: jest.fn() push: jest.fn(),
}; };
\ No newline at end of file
const user = { const user = {
state: { state: {
token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmaXJzdE5hbWUiOiJUZXN0IiwibGFzdE5hbWUiOiJUZXN0ZXNlbiIsImFjY291bnRJZCI6IjEiLCJleHAiOjE2NTE2NTQxNDUsImVtYWlsIjoidGVzdEB0ZXN0LmNvbSJ9.LnOYs_9WLusp463bQo9aXPcNGI4ooz7uI3iiMrnSPTY", token:
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmaXJzdE5hbWUiOiJUZXN0IiwibGFzdE5hbWUiOiJUZXN0ZXNlbiIsImFjY291bnRJZCI6IjEiLCJleHAiOjE2NTE2NTQxNDUsImVtYWlsIjoidGVzdEB0ZXN0LmNvbSJ9.LnOYs_9WLusp463bQo9aXPcNGI4ooz7uI3iiMrnSPTY",
},
mutations: {
logout(state) {
state.token = null;
}, },
saveToken(state, token) {
mutations: { state.token = token;
logout(state) {
state.token = null;
},
saveToken(state, token) {
state.token = token;
},
}, },
} },
};
export const store = { export const store = {
state: { state: {
user, user,
}, },
modules: { modules: {
user, user,
}, },
commit: jest.fn() commit: jest.fn(),
} };
export const $store = { export const $store = {
state: { state: {
user, user,
}, },
modules: { modules: {
user, user,
}, },
commit: jest.fn() commit: jest.fn(),
} };
\ No newline at end of file
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