test: improve $options test to use beforeCreate hook

This commit is contained in:
Evan You 2020-03-24 12:03:21 -04:00
parent 528621ba41
commit 4cb3c5c49a

View File

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