running first test

This commit is contained in:
2024-08-21 14:19:30 -06:00
parent c698e33853
commit 2748416e7b
14 changed files with 416 additions and 6 deletions

View File

@@ -0,0 +1,15 @@
import { LocalQuizQuestion } from "./localQuizQuestion";
export interface LocalQuiz {
name: string;
description: string;
password?: string;
lockAt?: string; // ISO 8601 date string
dueAt: string; // ISO 8601 date string
shuffleAnswers: boolean;
showCorrectAnswers: boolean;
oneQuestionAtATime: boolean;
localAssignmentGroupName?: string;
allowedAttempts: number;
questions: LocalQuizQuestion[];
}

View File

@@ -0,0 +1,16 @@
import { LocalQuizQuestionAnswer } from "./localQuizQuestionAnswer";
export interface LocalQuizQuestion {
text: string;
questionType: QuestionType;
points: number;
answers: LocalQuizQuestionAnswer[];
}
export enum QuestionType {
MultipleAnswers = "multiple_answers",
MultipleChoice = "multiple_choice",
Essay = "essay",
ShortAnswer = "short_answer",
Matching = "matching"
}

View File

@@ -0,0 +1,6 @@
export interface LocalQuizQuestionAnswer {
correct: boolean;
text: string;
matchedText?: string;
htmlText: string;
}