inject.spec.ts (vue-2.7.13) | : | inject.spec.ts (vue-2.7.14) | ||
---|---|---|---|---|
skipping to change at line 715 | skipping to change at line 715 | |||
} | } | |||
} | } | |||
} | } | |||
}).$mount() | }).$mount() | |||
val = 2 | val = 2 | |||
vm.ok = true | vm.ok = true | |||
await nextTick() | await nextTick() | |||
expect(spy).toHaveBeenCalledWith(2) | expect(spy).toHaveBeenCalledWith(2) | |||
}) | }) | |||
// #12854 | ||||
test('should not mutate original provide options', () => { | ||||
const hairMixin = { provide: { hair: 'red' } } | ||||
const eyesMixin = { provide: { eyes: 'brown' } } | ||||
new Vue({ mixins: [hairMixin, eyesMixin], render() {} }).$mount() | ||||
expect(eyesMixin.provide).toStrictEqual({ eyes: 'brown' }) | ||||
}) | ||||
}) | }) | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 8 lines changed or added |