We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88c8ea4 commit 81a96a6Copy full SHA for 81a96a6
test/specs/vue-numeric.spec.js
@@ -83,6 +83,11 @@ describe('vue-numeric.vue', () => {
83
expect(wrapper.vm.checkMinValue(1000)).is.equal(false)
84
})
85
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
+
91
it('computed minValue return 0 if min props undefined', () => {
92
const wrapper = mount(VueNumeric, { propsData: { value: 3000 }})
93
expect(wrapper.vm.minValue).to.equal(0)
0 commit comments