We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6c6776 commit 88ecea9Copy full SHA for 88ecea9
packages/runtime-core/__tests__/apiOptions.spec.ts
@@ -1265,14 +1265,18 @@ describe('api: options', () => {
1265
1266
test('this.$options[lifecycle-name]', () => {
1267
const mixin = {
1268
- mounted() {}
+ mounted() {},
1269
+ unmounted() {}
1270
}
1271
createApp({
1272
mixins: [mixin],
1273
mounted() {},
1274
+ unmounted() {},
1275
created() {
1276
expect(this.$options.mounted).toBeInstanceOf(Array)
1277
expect(this.$options.mounted.length).toBe(2)
1278
+ expect(this.$options.unmounted).toBeInstanceOf(Array)
1279
+ expect(this.$options.unmounted.length).toBe(2)
1280
},
1281
render: () => null
1282
}).mount(nodeOps.createElement('div'))
0 commit comments