Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
Close #10863
}
render(h(Comp), root)
expect(fn).toHaveBeenCalledTimes(1)
+ // #10863
+ expect(fn).toHaveBeenCalledWith()
})
it('onMounted', () => {
export const hasChanged = (value: any, oldValue: any): boolean =>
!Object.is(value, oldValue)
-export const invokeArrayFns = (fns: Function[], arg?: any) => {
+export const invokeArrayFns = (fns: Function[], ...arg: any[]) => {
for (let i = 0; i < fns.length; i++) {
- fns[i](arg)
+ fns[i](...arg)
}
}