Skip to content

Commit

Permalink
chore: fixes lesson_03 test for real this time (code-differently#96)
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony D. Mays <[email protected]>
  • Loading branch information
anthonydmays authored Sep 30, 2024
1 parent 396ed58 commit 7659ee8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lesson_03/quiz/src/lesson3.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('Lesson3Test', () => {
it('assembles questions correctly', async () => {
for (const quizQuestions of quizQuestionsByProvider.values()) {
// Expect the right number of questions.
expect(quizQuestions.length).toBe(2);
expect(quizQuestions.length).toBeGreaterThanOrEqual(2);

// Expect questions to be numbered correctly.
for (let i = 0; i < quizQuestions.length; i++) {
Expand All @@ -64,7 +64,7 @@ describe('Lesson3Test', () => {
const questionPrompts = new Set(
quizQuestions.map((q) => q.getQuestionPrompt()),
);
expect(questionPrompts.size).toBeGreaterThan(2);
expect(questionPrompts.size).toBeGreaterThanOrEqual(2);
}
});

Expand Down

0 comments on commit 7659ee8

Please sign in to comment.