Explorar o código

test: improve $options test to use beforeCreate hook

Evan You %!s(int64=6) %!d(string=hai) anos
pai
achega
4cb3c5c49a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/runtime-core/__tests__/apiOptions.spec.ts

+ 1 - 1
packages/runtime-core/__tests__/apiOptions.spec.ts

@@ -570,7 +570,7 @@ describe('api: options', () => {
       mixins: [{ foo: 'mixin' }],
       extends: { foo: 'extends' },
       foo: 'local',
-      mounted() {
+      beforeCreate() {
         merged = this.$options.foo
       }
     })