(rawTarget: any[])
| 110 | } |
| 111 | |
| 112 | function unInstrumentArr(rawTarget: any[]) { |
| 113 | identityMethods.forEach(key => { |
| 114 | ;(rawTarget[key] as any).mockClear() |
| 115 | // relink to prototype method |
| 116 | rawTarget[key] = Array.prototype[key] as any |
| 117 | }) |
| 118 | } |
| 119 | |
| 120 | function expectHaveBeenCalledTimes(rawTarget: any[], times: number) { |
| 121 | identityMethods.forEach(key => { |
no test coverage detected