Skip to content

Commit 7ffcffb

Browse files
committed
prettier
1 parent 9242717 commit 7ffcffb

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/components/views/polls/pollHistory/PollListItemEnded.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ const getWinningAnswers = (poll: Poll, responseRelations: Relations): EndedPollS
4242
totalVoteCount,
4343
winningAnswers: poll.pollEvent.answers
4444
.map((answer, index) => ({ answerIndex: index, answer })) // keep track of original answer index
45-
.filter(({answer}) => votes.get(answer.id) === winCount)
46-
.map(({answer, answerIndex}) => ({
45+
.filter(({ answer }) => votes.get(answer.id) === winCount)
46+
.map(({ answer, answerIndex }) => ({
4747
answer,
4848
voteCount: votes.get(answer.id) || 0,
4949
optionNumber: answerIndex + 1,

test/unit-tests/components/views/polls/pollHistory/PollListItemEnded-test.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,6 @@ describe("<PollListItemEnded />", () => {
205205

206206
// The optionNumber is maintained correctly
207207
const radioInput = pollOption.querySelector('input[type="radio"]');
208-
expect(radioInput).toHaveAttribute(
209-
"aria-label",
210-
expect.stringContaining("Option 3, Toyota Supra MK4"),
211-
);
208+
expect(radioInput).toHaveAttribute("aria-label", expect.stringContaining("Option 3, Toyota Supra MK4"));
212209
});
213210
});

0 commit comments

Comments
 (0)