From 15563fef4ced0de317ccba3ce1fe8c305b773a6c Mon Sep 17 00:00:00 2001
From: henridb <henridb@stud.ntnu.no>
Date: Wed, 1 May 2024 13:45:05 +0200
Subject: [PATCH] fix: unit test and img src path

---
 src/components/Login/Login.vue                     | 2 +-
 src/components/Login/__tests__/LoginLink.spec.ts   | 2 +-
 src/components/SignUp/SignUp.vue                   | 2 +-
 src/views/Authentication/ForgottenPasswordView.vue | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/components/Login/Login.vue b/src/components/Login/Login.vue
index 438344c..ce6ca5d 100644
--- a/src/components/Login/Login.vue
+++ b/src/components/Login/Login.vue
@@ -13,7 +13,7 @@ import LoginForm from '@/components/Login/LoginForm.vue'
 
 <style scoped>
   .containers {
-    background: url('./src/assets/wave.svg');
+    background: url('@/assets/wave.svg');
     background-repeat: no-repeat;
     background-size: cover;
     height: 100vh;
diff --git a/src/components/Login/__tests__/LoginLink.spec.ts b/src/components/Login/__tests__/LoginLink.spec.ts
index 299e125..79b1a00 100644
--- a/src/components/Login/__tests__/LoginLink.spec.ts
+++ b/src/components/Login/__tests__/LoginLink.spec.ts
@@ -43,7 +43,7 @@ describe('LoginPrompt', () => {
 
         await router.isReady(); // Ensure the router is ready before asserting
 
-        const loginLink = getByText('Login');
+        const loginLink = getByText('Logg inn');
         expect(loginLink).toBeDefined(); // Check if the 'Login' link is rendered
     });
 
diff --git a/src/components/SignUp/SignUp.vue b/src/components/SignUp/SignUp.vue
index 31b4a8d..5f51815 100644
--- a/src/components/SignUp/SignUp.vue
+++ b/src/components/SignUp/SignUp.vue
@@ -13,7 +13,7 @@ import SignUpForm from '@/components/SignUp/SignUpForm.vue'
 
 <style scoped>
 .containers {
-  background: url('./src/assets/wave.svg');
+  background: url('@/assets/wave.svg');
   background-repeat: no-repeat;
   background-size: cover;
   height: 100vh;
diff --git a/src/views/Authentication/ForgottenPasswordView.vue b/src/views/Authentication/ForgottenPasswordView.vue
index 891981a..b518986 100644
--- a/src/views/Authentication/ForgottenPasswordView.vue
+++ b/src/views/Authentication/ForgottenPasswordView.vue
@@ -59,7 +59,7 @@ const submitForm = async () => {
 
 <style scoped>
 .containers {
-  background: url('./src/assets/wave.svg');
+  background: url('@/assets/wave.svg');
   background-size: cover;
   height: 100vh;
   display: flex;
-- 
GitLab