Skip to content

Commit

Permalink
Fix reference to removed LanguageCode enum (#5546)
Browse files Browse the repository at this point in the history
  • Loading branch information
kofi-q authored Oct 22, 2024
1 parent 739a6af commit e11d374
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions apps/mark-scan/backend/src/util/render_ballot.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@ import {
electionGeneralDefinition,
systemSettings,
} from '@votingworks/fixtures';
import {
LanguageCode,
safeParseSystemSettings,
TEST_JURISDICTION,
} from '@votingworks/types';
import { safeParseSystemSettings, TEST_JURISDICTION } from '@votingworks/types';
import { PdfPage, pdfToImages } from '@votingworks/image-utils';
import { singlePrecinctSelectionFor } from '@votingworks/utils';
import { ImageData } from 'canvas';
import { mockOf } from '@votingworks/test-utils';
import { mockOf, TestLanguageCode } from '@votingworks/test-utils';
import {
getLayout,
NoLayoutOptionError,
Expand Down Expand Up @@ -80,7 +76,7 @@ test("throws an error if a single page can't be rendered after max retries", asy
precinctId,
ballotStyleId,
votes: {},
languageCode: LanguageCode.ENGLISH,
languageCode: TestLanguageCode.ENGLISH,
})
).rejects.toThrow('Unable to render ballot contents in a single page');
});
Expand All @@ -101,7 +97,7 @@ test('short ciruits if getLayout returns an error', async () => {
precinctId,
ballotStyleId,
votes: {},
languageCode: LanguageCode.ENGLISH,
languageCode: TestLanguageCode.ENGLISH,
})
).rejects.toThrow('Unable to render ballot contents in a single page');
});

0 comments on commit e11d374

Please sign in to comment.