Skip to content

Commit bba54cf

Browse files
committed
Update form-input.spec.js
1 parent 1f5ce59 commit bba54cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/form-input/form-input.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,8 @@ describe('form-input', () => {
695695
// Should emit a new input event
696696
expect(wrapper.emitted('input').length).toEqual(2)
697697
expect(wrapper.emitted('input')[1][0]).toEqual('123.4500')
698-
// Should emit a new update event
699-
expect(wrapper.emitted('update').length).toBe(2)
698+
// v-model value stays the same and update event shouldn't be emitted again
699+
expect(wrapper.emitted('update').length).toBe(1)
700700
expect(wrapper.emitted('update')[0][0]).toBeCloseTo(123.45)
701701

702702
// Updating the v-model to new numeric value

0 commit comments

Comments
 (0)