Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
unit(component): test functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
lemredd committed Oct 14, 2022
1 parent 6d3868c commit e1b91e0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions components/helpers/progress_bar.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { shallowMount } from "@vue/test-utils"

import Component from "./progress_bar.vue"

describe("Component: Helper/progress bar", () => {
it("can display current progress", () => {
const wrapper = shallowMount(Component, {
"props": {
"current": 0
}
})
const current = wrapper.find(".current")
const castedWrapper = wrapper.vm as any

expect(castedWrapper.max).toEqual(100)
expect(current.exists()).toBeTruthy()
})
})

0 comments on commit e1b91e0

Please sign in to comment.