Skip to content

Commit

Permalink
test corrections.
Browse files Browse the repository at this point in the history
  • Loading branch information
devinleighsmith committed Nov 6, 2023
1 parent b1891c5 commit cc03cf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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']);

Expand All @@ -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 () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,9 @@ exports[`Property list view matches snapshot 1`] = `
class="col-auto"
>
<button
class="c4 Button Button--icon-only primary btn btn-primary"
class="c4 Button Button--disabled Button--icon-only primary btn btn-primary"
data-testid="search"
disabled=""
id="search-button"
title="search"
type="submit"
Expand Down

0 comments on commit cc03cf7

Please sign in to comment.