Skip to content
Snippets Groups Projects

New saving path styling

Merged Lotte Christine Walla Aune requested to merge new-saving-path-styling into development
7 files
+ 161
52
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -7,16 +7,29 @@ import {ref} from "vue";
@@ -7,16 +7,29 @@ import {ref} from "vue";
describe('Saving Path: Component testing', () => {
describe('Saving Path: Component testing', () => {
let wrapper;
let wrapper;
 
 
const savingGoalMock = {
 
savingGoalId: 1,
 
title: "Test goal",
 
goal: 1000,
 
deadline: "2024-04-22T00:00:00.000+00:00",
 
status: "ACTIVE",
 
};
 
beforeEach(() => {
beforeEach(() => {
setActivePinia(createPinia());
setActivePinia(createPinia());
wrapper = mount(NewSavingPath, {
wrapper = mount(NewSavingPath, {
global: {
global: {
stubs: ['Popover', 'PopoverTrigger', 'PopoverContent']
stubs: ['Popover', 'PopoverTrigger', 'PopoverContent']
 
},
 
props: {
 
savingGoal: savingGoalMock
}
}
});
});
wrapper.vm.coinThresholds = {
wrapper.vm.coinThresholds = {
14: 1000
14: 1000
};
};
 
})
})
it('renders the component', () => {
it('renders the component', () => {
Loading