diff --git a/source/frontend/src/features/properties/filter/PropertyFilter.test.tsx b/source/frontend/src/features/properties/filter/PropertyFilter.test.tsx index 605d2cfc01..210c521ee0 100644 --- a/source/frontend/src/features/properties/filter/PropertyFilter.test.tsx +++ b/source/frontend/src/features/properties/filter/PropertyFilter.test.tsx @@ -112,7 +112,7 @@ describe('MapFilterBar', () => { expect(container.firstChild).toMatchSnapshot(); }); - it('submits correct values', async () => { + it('does not submit if there is no pid/pin for address', async () => { // Arrange mockKeycloak(['admin-properties']); @@ -128,16 +128,7 @@ describe('MapFilterBar', () => { }); // Assert - expect(onFilterChange).toBeCalledWith({ - address: '', - latitude: '', - longitude: '', - page: undefined, - pinOrPid: '', - planNumber: '', - quantity: undefined, - searchBy: 'pinOrPid', - }); + expect(onFilterChange).not.toHaveBeenCalled(); }); it('resets values when reset button is clicked', async () => { diff --git a/source/frontend/src/features/properties/list/__snapshots__/PropertyListView.test.tsx.snap b/source/frontend/src/features/properties/list/__snapshots__/PropertyListView.test.tsx.snap index 0b247b02a5..d893ff1082 100644 --- a/source/frontend/src/features/properties/list/__snapshots__/PropertyListView.test.tsx.snap +++ b/source/frontend/src/features/properties/list/__snapshots__/PropertyListView.test.tsx.snap @@ -363,8 +363,9 @@ exports[`Property list view matches snapshot 1`] = ` class="col-auto" >