mirror of
https://github.com/element-hq/element-web.git
synced 2025-12-05 01:10:40 +00:00
prettier
This commit is contained in:
@@ -42,8 +42,8 @@ const getWinningAnswers = (poll: Poll, responseRelations: Relations): EndedPollS
|
||||
totalVoteCount,
|
||||
winningAnswers: poll.pollEvent.answers
|
||||
.map((answer, index) => ({ answerIndex: index, answer })) // keep track of original answer index
|
||||
.filter(({answer}) => votes.get(answer.id) === winCount)
|
||||
.map(({answer, answerIndex}) => ({
|
||||
.filter(({ answer }) => votes.get(answer.id) === winCount)
|
||||
.map(({ answer, answerIndex }) => ({
|
||||
answer,
|
||||
voteCount: votes.get(answer.id) || 0,
|
||||
optionNumber: answerIndex + 1,
|
||||
|
||||
@@ -205,9 +205,6 @@ describe("<PollListItemEnded />", () => {
|
||||
|
||||
// The optionNumber is maintained correctly
|
||||
const radioInput = pollOption.querySelector('input[type="radio"]');
|
||||
expect(radioInput).toHaveAttribute(
|
||||
"aria-label",
|
||||
expect.stringContaining("Option 3, Toyota Supra MK4"),
|
||||
);
|
||||
expect(radioInput).toHaveAttribute("aria-label", expect.stringContaining("Option 3, Toyota Supra MK4"));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user