Skip to content
Snippets Groups Projects
Commit 6b7a5421 authored by Sverre Frogner Haugen's avatar Sverre Frogner Haugen
Browse files

Updated Milestone Path unit test now that total nodes is always 50 instead of dynamic

parent 0322c219
No related branches found
No related tags found
1 merge request!40Milestone path backend connection
Pipeline #279142 passed
......@@ -4,16 +4,6 @@ import { describe, it, expect } from 'vitest'
describe('PathNode.vue', () => {
describe('computed', () => {
it('calculates total nodes correctly', () => {
const totalToSave = 2000
const wrapper = shallowMount(MilestonePath, {
props: { totalToSave, totalSaved: 0 }
})
const actualValue = (wrapper.vm as any).totalNodes;
expect(actualValue).toBe(Math.ceil(totalToSave / 250))
})
it('calculates remaining nodes correctly', () => {
const totalToSave = 2000
......@@ -41,7 +31,7 @@ describe('PathNode.vue', () => {
describe('node generation and styling', () => {
it('generates nodes correctly', () => {
const totalNodes = 8 // For example
const totalNodes = 50 // For example
const totalToSave = 2000
const totalSaved = 1000
const wrapper = shallowMount(MilestonePath, {
......
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