Skip to content

Commit

Permalink
revert changes to test
Browse files Browse the repository at this point in the history
  • Loading branch information
kshen0 committed Feb 15, 2024
1 parent 579f510 commit 2a314ae
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
import userEvent from '@testing-library/user-event';
import { LogEventId, Logger, fakeLogger } from '@votingworks/logging';
import { screen } from '../../test/react_testing_library';
import { render } from '../../test/test_utils';
import { ApiMock, createApiMock } from '../../test/helpers/mock_api_client';
import { ApiProvider } from '../api_provider';
import { RemoveInvalidatedBallotPage } from './remove_invalidated_ballot_page';

let logger: Logger;
let apiMock: ApiMock;

beforeEach(() => {
logger = fakeLogger();
apiMock = createApiMock();
});

Expand All @@ -21,15 +18,11 @@ afterEach(() => {
test('continue button', () => {
render(
<ApiProvider apiClient={apiMock.mockApiClient} noAudio>
<RemoveInvalidatedBallotPage logger={logger} paperPresent={false} />
<RemoveInvalidatedBallotPage paperPresent={false} />
</ApiProvider>
);

apiMock.expectConfirmInvalidateBallot();

userEvent.click(screen.getByText('Continue'));
expect(logger.log).toHaveBeenCalledWith(
LogEventId.PollWorkerConfirmedBallotRemoval,
'poll_worker'
);
});

0 comments on commit 2a314ae

Please sign in to comment.