diff --git a/src/components/CommunityComponents/CommunityHeader.vue b/src/components/CommunityComponents/CommunityHeader.vue index 4aacbd7ad2b65b67c1f45311f81cb4e2373f87f6..2d3773fa6d281f83f60f2c8eb8d33b348b96daa2 100644 --- a/src/components/CommunityComponents/CommunityHeader.vue +++ b/src/components/CommunityComponents/CommunityHeader.vue @@ -1,8 +1,9 @@ <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" > diff --git a/src/components/UserProfileComponents/UserProfile.vue b/src/components/UserProfileComponents/UserProfile.vue index 7ee44e43946ce93d577ae888efc9923d71f7aacc..9235ab472cdd07769260c182f5acc0fddd9632a8 100644 --- a/src/components/UserProfileComponents/UserProfile.vue +++ b/src/components/UserProfileComponents/UserProfile.vue @@ -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="" diff --git a/tests/unit/mock-router.js b/tests/unit/mock-router.js index f4f46df86ea3c1d76d254c9bc54fb5aa845c6cb2..6366075cfb8d08d25cc67f863d4a430b4f2dbe1e 100644 --- a/tests/unit/mock-router.js +++ b/tests/unit/mock-router.js @@ -1,21 +1,21 @@ // 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(), +}; diff --git a/tests/unit/mock-store.js b/tests/unit/mock-store.js index c31cc0f64615756e95c56a9c7eaaf4644526a656..9ed8b5096da17bccd89783d61371856b1e3c9656 100644 --- a/tests/unit/mock-store.js +++ b/tests/unit/mock-store.js @@ -1,34 +1,35 @@ 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(), +};