Skip to content

Commit

Permalink
Update the test
Browse files Browse the repository at this point in the history
  • Loading branch information
leung018 committed Oct 5, 2024
1 parent 78ace1d commit 2b42416
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/quiz.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ describe('MultipleChoiceQuiz', () => {
)
})

it('should display getCurrentPlayQuestions of questionSet if they are different from its original questions', async () => {
it('should display swapped questionSet', async () => {
const questionSet = new QuestionSetBuilderForTest()
.appendQuestion({
mc: new MultipleChoiceBuilder()
Expand All @@ -252,7 +252,7 @@ describe('MultipleChoiceQuiz', () => {
const {
renderResult: { getByLabelText },
} = renderMultipleChoicePage({
questionSet: questionSet.newSwappedChoicesQuestionSet(),
questionSet: questionSet.newSwappedChoicesQuestionSet(), // The swapped choices question set has different getCurrentPlayQuestions from the original one
})

// Choices are swapped in the page
Expand Down

0 comments on commit 2b42416

Please sign in to comment.