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

Function expectHaveBeenCalledTimes

packages/reactivity/__tests__/reactiveArray.spec.ts:120–124  ·  view source on GitHub ↗
(rawTarget: any[], times: number)

Source from the content-addressed store, hash-verified

118 }
119
120 function expectHaveBeenCalledTimes(rawTarget: any[], times: number) {
121 identityMethods.forEach(key => {
122 expect(rawTarget[key]).toHaveBeenCalledTimes(times)
123 })
124 }
125
126 test('should be called once with a non-existent raw value', () => {
127 const reactiveArr = reactive([])

Callers 1

Calls 1

forEachMethod · 0.80

Tested by

no test coverage detected