We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 396ed58 commit 7659ee8Copy full SHA for 7659ee8
lesson_03/quiz/src/lesson3.test.ts
@@ -50,7 +50,7 @@ describe('Lesson3Test', () => {
50
it('assembles questions correctly', async () => {
51
for (const quizQuestions of quizQuestionsByProvider.values()) {
52
// Expect the right number of questions.
53
- expect(quizQuestions.length).toBe(2);
+ expect(quizQuestions.length).toBeGreaterThanOrEqual(2);
54
55
// Expect questions to be numbered correctly.
56
for (let i = 0; i < quizQuestions.length; i++) {
@@ -64,7 +64,7 @@ describe('Lesson3Test', () => {
64
const questionPrompts = new Set(
65
quizQuestions.map((q) => q.getQuestionPrompt()),
66
);
67
- expect(questionPrompts.size).toBeGreaterThan(2);
+ expect(questionPrompts.size).toBeGreaterThanOrEqual(2);
68
}
69
});
70
0 commit comments