(c: DataCollection<TestDataClass>, expected: [number, number][])
| 47 | } |
| 48 | |
| 49 | const expectArrayContents = (c: DataCollection<TestDataClass>, expected: [number, number][]) => { |
| 50 | expect(c.array.map(x => [x.testid, x.testdata])).toEqual(expected); |
| 51 | } |
| 52 | |
| 53 | const expectByIdContents = (c: DataCollection<TestDataClass>, expected: [number, number][]) => { |
| 54 | expect([...c.byId.values()].map(x => [x.testid, x.testdata])).toEqual(expected); |
no outgoing calls
no test coverage detected