mirror of https://github.com/vuejs/core.git
test: improve $options test to use beforeCreate hook
This commit is contained in:
parent
528621ba41
commit
4cb3c5c49a
|
@ -570,7 +570,7 @@ describe('api: options', () => {
|
||||||
mixins: [{ foo: 'mixin' }],
|
mixins: [{ foo: 'mixin' }],
|
||||||
extends: { foo: 'extends' },
|
extends: { foo: 'extends' },
|
||||||
foo: 'local',
|
foo: 'local',
|
||||||
mounted() {
|
beforeCreate() {
|
||||||
merged = this.$options.foo
|
merged = this.$options.foo
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue