(x: Item, y: Item)
| 356 | it('should not empty selection when caling setSelection twice with comparable', () => { |
| 357 | type Item = {id: number}; |
| 358 | const compareFn = (x: Item, y: Item) => x.id === y.id; |
| 359 | const model = new SelectionModel<Item>(false, [], false, compareFn); |
| 360 | model.setSelection({id: 1}); |
| 361 | expect(model.selected).toEqual([{id: 1}]); |
nothing calls this directly
no outgoing calls
no test coverage detected