Skip to content

Commit 88ecea9

Browse files
committed
test: add case for options merge strategies
1 parent f6c6776 commit 88ecea9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: packages/runtime-core/__tests__/apiOptions.spec.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1265,14 +1265,18 @@ describe('api: options', () => {
12651265

12661266
test('this.$options[lifecycle-name]', () => {
12671267
const mixin = {
1268-
mounted() {}
1268+
mounted() {},
1269+
unmounted() {}
12691270
}
12701271
createApp({
12711272
mixins: [mixin],
12721273
mounted() {},
1274+
unmounted() {},
12731275
created() {
12741276
expect(this.$options.mounted).toBeInstanceOf(Array)
12751277
expect(this.$options.mounted.length).toBe(2)
1278+
expect(this.$options.unmounted).toBeInstanceOf(Array)
1279+
expect(this.$options.unmounted.length).toBe(2)
12761280
},
12771281
render: () => null
12781282
}).mount(nodeOps.createElement('div'))

0 commit comments

Comments
 (0)