mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 08:53:13 +00:00
fix(client): work through the findings from the coverage pass
214 items came out of writing the tests. Real defects are corrected, dead code is removed rather than covered, and the tests that pinned the old behaviour move with them. Also drops two agent coverage scratch files that slipped into the coverage PR and adds the ignore rule that keeps them out.
This commit is contained in:
@@ -116,10 +116,10 @@ describe('LocationSelect', () => {
|
||||
render(<Host onPick={onPick} />);
|
||||
await user.type(screen.getByRole('textbox'), 'Oberkampf');
|
||||
|
||||
// The row falls back to the address for its title and still prints the
|
||||
// address line underneath, so the same text shows up twice.
|
||||
// The row falls back to the address for its title and skips the address
|
||||
// subtitle, so the text shows up once.
|
||||
const rows = await screen.findAllByText('12 Rue Oberkampf');
|
||||
expect(rows).toHaveLength(2);
|
||||
expect(rows).toHaveLength(1);
|
||||
|
||||
await user.click(rows[0]);
|
||||
expect(onPick).toHaveBeenCalledWith(expect.objectContaining({ name: '12 Rue Oberkampf' }));
|
||||
|
||||
Reference in New Issue
Block a user