Skip to content

Commit

Permalink
Added correct enum in election tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcvelmer committed Jan 16, 2024
1 parent 0defcd4 commit e741d20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/integration/election.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
CensusType,
Election,
ElectionCreationSteps,
ElectionResultsTypeNames,
ElectionStatus,
MultiChoiceElection,
PlainCensus,
Expand Down Expand Up @@ -120,7 +121,7 @@ describe('Election integration tests', () => {
expect(publishedElection.fromArchive).toBeFalsy();
expect(publishedElection.chainId).toBeDefined();
expect(publishedElection.maxCensusSize).toEqual(1);
expect(publishedElection.resultsType.name).toEqual('single-choice-multiquestion');
expect(publishedElection.resultsType.name).toEqual(ElectionResultsTypeNames.SINGLE_CHOICE_MULTIQUESTION);
expect(publishedElection.resultsType.properties).toStrictEqual({});
});
}, 85000);
Expand Down Expand Up @@ -621,7 +622,7 @@ describe('Election integration tests', () => {
expect(election.voteType.maxValue).toEqual(7);
expect(election.voteType.maxTotalCost).toEqual(0);
expect(election.voteType.uniqueChoices).toEqual(true);
expect(election.resultsType.name).toEqual('multiple-choice');
expect(election.resultsType.name).toEqual(ElectionResultsTypeNames.MULTIPLE_CHOICE);
expect(election.resultsType.properties).toStrictEqual({
repeatChoice: false,
abstainValues: ['5', '6', '7'],
Expand Down

0 comments on commit e741d20

Please sign in to comment.