Skip to content

Commit f20b1a8

Browse files
committed
fix ssr test case for init -> beforeCreate change
1 parent 8c86973 commit f20b1a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ssr/ssr-string.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ describe('SSR: renderToString', () => {
141141
data: {
142142
val: 'hi'
143143
},
144-
init () {
144+
beforeCreate () {
145145
expect(lifecycleCount++).toBe(1)
146146
},
147147
created () {
@@ -151,7 +151,7 @@ describe('SSR: renderToString', () => {
151151
},
152152
components: {
153153
test: {
154-
init () {
154+
beforeCreate () {
155155
expect(lifecycleCount++).toBe(3)
156156
},
157157
created () {

0 commit comments

Comments
 (0)