Explorar el Código

fix ssr test case for init -> beforeCreate change

Evan You hace 10 años
padre
commit
f20b1a8333
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      test/ssr/ssr-string.spec.js

+ 2 - 2
test/ssr/ssr-string.spec.js

@@ -141,7 +141,7 @@ describe('SSR: renderToString', () => {
       data: {
       data: {
         val: 'hi'
         val: 'hi'
       },
       },
-      init () {
+      beforeCreate () {
         expect(lifecycleCount++).toBe(1)
         expect(lifecycleCount++).toBe(1)
       },
       },
       created () {
       created () {
@@ -151,7 +151,7 @@ describe('SSR: renderToString', () => {
       },
       },
       components: {
       components: {
         test: {
         test: {
-          init () {
+          beforeCreate () {
             expect(lifecycleCount++).toBe(3)
             expect(lifecycleCount++).toBe(3)
           },
           },
           created () {
           created () {