Skip to content

Commit 922c8bb

Browse files
committed
Updated unit test to use .setChecked() instead of .trigger(change)
1 parent 465fab5 commit 922c8bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/specs/components/FirstStep.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('FirstStep Component', () => {
4040
})
4141

4242
const radio = wrapper.findAll('input[type="radio"]').at(0)
43-
radio.trigger('change')
43+
radio.setChecked()
4444

4545
expect(wrapper.emitted().change[0]).toEqual(['FS', 0, true])
4646
})
@@ -53,7 +53,7 @@ describe('FirstStep Component', () => {
5353
})
5454

5555
const radio = wrapper.findAll('input[type="radio"]').at(1)
56-
radio.trigger('change')
56+
radio.setChecked()
5757

5858
expect(wrapper.emitted().change[0]).toEqual(['FS', 0, false])
5959
})

0 commit comments

Comments
 (0)