Skip to content

Commit

Permalink
fixup! refactor: update export report PDF button to allow supporting …
Browse files Browse the repository at this point in the history
…ballot count reports
  • Loading branch information
adghayes committed Oct 3, 2023
1 parent 1dfb4df commit dbed371
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { fakeKiosk } from '@votingworks/test-utils';
import { renderInAppContext } from '../../../test/render_in_app_context';
import { ExportReportPdfButton } from './export_report_pdf_button';
import { screen } from '../../../test/react_testing_library';
import { FileType } from '../save_frontend_file_modal';

afterEach(() => {
delete window.kiosk;
Expand All @@ -17,6 +18,7 @@ test('disabled by disabled prop', () => {
electionDefinition={electionTwoPartyPrimaryDefinition}
generateReportPdf={() => Promise.resolve(new Uint8Array())}
defaultFilename="some-file"
fileType={FileType.TallyReport}
disabled
/>
);
Expand All @@ -30,6 +32,7 @@ test('disabled when window.kiosk is undefined', () => {
electionDefinition={electionTwoPartyPrimaryDefinition}
generateReportPdf={() => Promise.resolve(new Uint8Array())}
defaultFilename="some-file"
fileType={FileType.TallyReport}
disabled={false}
/>
);
Expand Down

0 comments on commit dbed371

Please sign in to comment.