8000 fix stagger tests · MicroTransactionsMatterToo/vue@e99c7a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit e99c7a3

Browse files
committed
fix stagger tests
1 parent 461df0f commit e99c7a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/unit/specs/directives/public/for/for_stagger_spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ describe('v-for staggering transitions', function () {
8282
expect(el.innerHTML).toBe('')
8383
_.nextTick(function () {
8484
expect(el.children.length).toBe(1)
85-
expect(el.children[0].className).toBe('stagger-transition stagger-enter')
85+
expect(el.children[0].className).toBe('stagger-transition stagger-enter stagger-enter-active')
8686
expect(el.children[0].textContent).toBe('1')
8787
vm.list = [vm.list[0]] // remove second
8888
setTimeout(function () {
@@ -115,7 +115,7 @@ describe('v-for staggering transitions', function () {
115115
expect(el.innerHTML).toBe('')
116116
_.nextTick(function () {
117117
expect(el.children.length).toBe(1)
118-
expect(el.children[0].className).toBe('stagger-transition stagger-enter')
118+
expect(el.children[0].className).toBe('stagger-transition stagger-enter stagger-enter-active')
119119
expect(el.children[0].textContent).toBe('1')
120120
vm.list = [vm.list[2], vm.list[1], vm.list[0]] // reorder
121121
setTimeout(function () {
@@ -135,7 +135,7 @@ describe('v-for staggering transitions', function () {
135135
expect(el.innerHTML).toBe('')
136136
_.nextTick(function () {
137137
expect(el.children.length).toBe(1)
138-
expect(el.children[0].className).toBe('stagger-transition stagger-enter')
138+
expect(el.children[0].className).toBe('stagger-transition stagger-enter stagger-enter-active')
139139
expect(el.children[0].textContent).toBe('1')
140140
_.nextTick(function () {
141141
expect(el.innerHTML).toBe('<div class="stagger-transition">1</div>')
@@ -147,7 +147,7 @@ describe('v-for staggering transitions', function () {
147147
vm.list = []
148148
_.nextTick(function () {
149149
expect(el.children.length).toBe(2)
150-
expect(el.children[0].className).toBe('stagger-transition stagger-leave')
150+
expect(el.children[0].className).toBe('stagger-transition stagger-leave stagger-leave-active')
151151
expect(el.children[0].textContent).toBe('1')
152152
expect(el.children[1].className).toBe('stagger-transition')
153153
expect(el.children[1].textContent).toBe('2')

0 commit comments

Comments
 (0)
0