Skip to content

Commit c6f45bf

Browse files
authored
Update alert.spec.js
1 parent 4097925 commit c6f45bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/alert/alert.spec.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,9 @@ describe('alert', () => {
149149
expect(wrapper.emitted('dismiss-count-down')[0][0]).toBe(2) // 3 - 1
150150

151151
jest.runAllTimers()
152-
expect(wrapper.emitted('dismiss-count-down').length).toBe(3)
153-
expect(wrapper.emitted('dismiss-count-down')[2][0]).toBe(0) // 3 - 3
152+
expect(wrapper.emitted('dismiss-count-down').length).toBe(4)
153+
expect(wrapper.emitted('dismiss-count-down')[2][0]).toBe(1) // 3 - 2
154+
expect(wrapper.emitted('dismiss-count-down')[3][0]).toBe(0) // 3 - 3
154155

155156
await wrapper.vm.$nextTick()
156157
expect(wrapper.isEmpty()).toBe(true)

0 commit comments

Comments
 (0)