(collection: Map<any, any>, fnName: string)
| 2 | |
| 3 | describe('reactivity/collections', () => { |
| 4 | function coverCollectionFn(collection: Map<any, any>, fnName: string) { |
| 5 | const spy = vi.fn() |
| 6 | let proxy = reactive(collection) |
| 7 | ;(collection as any)[fnName] = spy |
| 8 | return [proxy as any, spy] |
| 9 | } |
| 10 | |
| 11 | describe('Map', () => { |
| 12 | test('instanceof', () => { |