Skip to content

Commit 7be2ac5

Browse files
committed
fix: create courseWare from question types...
not instances of Qs
1 parent 4f9ff98 commit 7be2ac5

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

packages/standalone-ui/src/questions/exampleCourse.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,7 @@ import { MultipleChoiceQuestion } from './MultipleChoiceQuestion';
44
import { NumberRangeQuestion } from './NumberRangeQuestion';
55

66
export const exampleCourse = new CourseWare('ExampleCourse', [
7-
new SimpleTextQuestion([
8-
{ questionText: 'What is the capital of France?', correctAnswer: 'Paris' },
9-
]),
10-
new SimpleTextQuestion([
11-
{ questionText: 'What is 2 + 2?', correctAnswer: '4' },
12-
]),
13-
new MultipleChoiceQuestion([
14-
{ questionText: 'Which of these is a fruit?', options: 'Apple,Carrot,Potato', correctAnswer: 'Apple' },
15-
]),
16-
new NumberRangeQuestion([
17-
{ questionText: 'Enter a number between 5 and 10', min: 5, max: 10 },
18-
]),
7+
SimpleTextQuestion,
8+
MultipleChoiceQuestion,
9+
NumberRangeQuestion,
1910
]);

0 commit comments

Comments
 (0)