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

Function assertCount

packages/runtime-core/__tests__/components/KeepAlive.spec.ts:559–574  ·  view source on GitHub ↗
(calls: number[])

Source from the content-addressed store, hash-verified

557 const spyCUM = vi.fn()
558
559 function assertCount(calls: number[]) {
560 expect([
561 spyAC.mock.calls.length,
562 spyAA.mock.calls.length,
563 spyADA.mock.calls.length,
564 spyAUM.mock.calls.length,
565 spyBC.mock.calls.length,
566 spyBA.mock.calls.length,
567 spyBDA.mock.calls.length,
568 spyBUM.mock.calls.length,
569 spyCC.mock.calls.length,
570 spyCA.mock.calls.length,
571 spyCDA.mock.calls.length,
572 spyCUM.mock.calls.length,
573 ]).toEqual(calls)
574 }
575
576 const viewRef = ref('a')
577 const views: Record<string, ComponentOptions> = {

Callers 1

KeepAlive.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected