MCPcopy
hub / github.com/vuejs/core / assertCall

Function assertCall

packages/runtime-core/__tests__/apiOptions.spec.ts:193–196  ·  view source on GitHub ↗
(spy: Mock, callIndex: number, args: any[])

Source from the content-addressed store, hash-verified

191 render(h(Comp), root)
192
193 function assertCall(spy: Mock, callIndex: number, args: any[]) {
194 expect(spy.mock.calls[callIndex].slice(0, 2)).toMatchObject(args)
195 expect(spy.mock.results[callIndex].value).toBe(ctx)
196 }
197
198 ctx.foo++
199 await nextTick()

Callers 1

apiOptions.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected