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>
<div class="flex items-center justify-between mx-4">
<router-link
:to="'/community/' + community.communityId"
class="flex-1 min-w-0">
:to="'/community/' + community.communityId"
class="flex-1 min-w-0"
>
<h2
class="text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate"
>
......
......@@ -27,7 +27,10 @@
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"
>
<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>
<router-link
to=""
......
// route id param for pages that require routing
// id = 1, user = test testesen
export const route = {
params: {
id: 1
}
params: {
id: 1,
},
};
export const router = {
push: jest.fn()
push: jest.fn(),
};
export const $route = {
params: {
id: 1
}
params: {
id: 1,
},
};
export const $router = {
push: jest.fn()
};
\ No newline at end of file
push: jest.fn(),
};
const user = {
state: {
token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmaXJzdE5hbWUiOiJUZXN0IiwibGFzdE5hbWUiOiJUZXN0ZXNlbiIsImFjY291bnRJZCI6IjEiLCJleHAiOjE2NTE2NTQxNDUsImVtYWlsIjoidGVzdEB0ZXN0LmNvbSJ9.LnOYs_9WLusp463bQo9aXPcNGI4ooz7uI3iiMrnSPTY",
state: {
token:
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmaXJzdE5hbWUiOiJUZXN0IiwibGFzdE5hbWUiOiJUZXN0ZXNlbiIsImFjY291bnRJZCI6IjEiLCJleHAiOjE2NTE2NTQxNDUsImVtYWlsIjoidGVzdEB0ZXN0LmNvbSJ9.LnOYs_9WLusp463bQo9aXPcNGI4ooz7uI3iiMrnSPTY",
},
mutations: {
logout(state) {
state.token = null;
},
mutations: {
logout(state) {
state.token = null;
},
saveToken(state, token) {
state.token = token;
},
saveToken(state, token) {
state.token = token;
},
}
},
};
export const store = {
state: {
user,
},
modules: {
user,
},
commit: jest.fn()
}
state: {
user,
},
modules: {
user,
},
commit: jest.fn(),
};
export const $store = {
state: {
user,
},
modules: {
user,
},
commit: jest.fn()
}
\ No newline at end of file
state: {
user,
},
modules: {
user,
},
commit: jest.fn(),
};
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