Skip to content

Commit cca45ee

Browse files
Dasiamemarleomac3
authored andcommitted
feat: adds Dasia's quiz questions (code-differently#114)
* feat: Dasia quizz questions * fix: duplicate declaration * Fix: capitalization * Forgot to delete a line * duplicate name
1 parent 67bfc8e commit cca45ee

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

lesson_03/quiz/src/quizzes/quizzes.module.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,32 @@ const QUIZ_PROVIDERS = [
2525
ChigazoGrahamsQuiz,
2626
AmiyahJonesQuiz,
2727
XavierCruzQuiz,
28+
];
29+
30+
@Module({
31+
providers: [
32+
...QUIZ_PROVIDERS,
33+
{
34+
provide: Quizzes,
35+
useFactory: (...args) => [...args],
36+
inject: QUIZ_PROVIDERS,
37+
},
38+
],
39+
})
40+
export class QuizzesModule {}
41+
42+
export const Quizzes = Symbol.for('Quizzes');
43+
44+
// Add your quiz provider here.
45+
46+
const QUIZ_PROVIDERS = [
47+
AnthonyMaysQuiz,
48+
YafiahAbdullahQuiz,
49+
AnotherQuiz,
50+
JosephCaballeroQuiz,
51+
OyeyemiJimohQuiz,
52+
ChigazoGrahamsQuiz,
53+
AmiyahJonesQuiz,
2854
LjMcwilliamsQuiz,
2955
];
3056

0 commit comments

Comments
 (0)