Skip to content

Commit 81a96a6

Browse files
committed
update test
1 parent 88c8ea4 commit 81a96a6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/specs/vue-numeric.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ describe('vue-numeric.vue', () => {
8383
expect(wrapper.vm.checkMinValue(1000)).is.equal(false)
8484
})
8585

86+
it('method formatToNumber works correctly', () => {
87+
const wrapper = mount(VueNumeric, { propsData: { value: '2000', separator: '.' }})
88+
expect(wrapper.vm.formatToNumber('2000')).is.equal(2000)
89+
})
90+
8691
it('computed minValue return 0 if min props undefined', () => {
8792
const wrapper = mount(VueNumeric, { propsData: { value: 3000 }})
8893
expect(wrapper.vm.minValue).to.equal(0)

0 commit comments

Comments
 (0)