Skip to content
Snippets Groups Projects
Commit b59a57b8 authored by Trygve Jørgensen's avatar Trygve Jørgensen
Browse files

chore: npm run fomrat

parent f40a2611
No related branches found
No related tags found
3 merge requests!66Final merge,!44Configuration validation,!4Pipeline fix
Pipeline #281664 passed
/*import { useUserStore } from '../../src/stores/userStore'
describe('Goals and Challenges Page Load', () => {
let userStore;
beforeEach(() => {
// Add console log to trace API calls
cy.on('window:before:load', (win) => {
cy.spy(win.console, 'log');
});
cy.window().then((win) => {
win.sessionStorage.setItem('accessToken', 'validAccessToken');
win.localStorage.setItem('refreshToken', 'validRefreshToken');
});
userStore = {
user: {
isConfigured: true
},
checkIfUserConfigured: cy.stub().resolves(),
};
cy.stub(window, useUserStore()).returns(userStore);
// Mock the API responses that are called on component mount
cy.intercept('GET', '/goals', {
statusCode: 200,
......@@ -115,3 +133,4 @@ describe('Goals and Challenges Page Load', () => {
});
});
*/
\ No newline at end of file
......@@ -63,7 +63,7 @@
</template>
<script setup>
import { ref, onMounted } from 'vue'
import { onMounted, ref } from 'vue'
import authInterceptor from '@/services/authInterceptor'
import { useChallengeStore } from '@/stores/challengeStore'
......
......@@ -46,7 +46,7 @@
</template>
<script setup lang="ts">
import { ref, computed } from 'vue'
import { computed, ref } from 'vue'
import { useUserConfigStore } from '@/stores/userConfigStore'
import ContinueButtonComponent from '@/components/ContinueButtonComponent.vue'
import router from '@/router'
......
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