@digabi/exam-engine-core 19.4.2 → 19.4.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/__tests__/results/ResultsContext.test.js +2 -2
- package/dist/__tests__/results/ResultsContext.test.js.map +1 -1
- package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
- package/dist/__tests__/validateAnswers.test.js +1 -3
- package/dist/__tests__/validateAnswers.test.js.map +1 -1
- package/dist/components/RenderIf.js +1 -1
- package/dist/components/RenderIf.js.map +1 -1
- package/dist/components/ScreenReaderOnly.js +1 -3
- package/dist/components/ScreenReaderOnly.js.map +1 -1
- package/dist/components/context/withContext.js +1 -1
- package/dist/components/context/withContext.js.map +1 -1
- package/dist/components/exam/QuestionTitle.js +1 -1
- package/dist/components/exam/QuestionTitle.js.map +1 -1
- package/dist/components/exam/internal/ErrorIndicator.js +1 -1
- package/dist/components/exam/internal/ErrorIndicator.js.map +1 -1
- package/dist/components/exam/internal/SaveIndicator.js +1 -1
- package/dist/components/exam/internal/SaveIndicator.js.map +1 -1
- package/dist/components/exam/internal/TextAnswerInput.js +1 -1
- package/dist/components/exam/internal/TextAnswerInput.js.map +1 -1
- package/dist/components/grading/GradingAnswerAnnotationList.js +1 -1
- package/dist/components/grading/GradingAnswerAnnotationList.js.map +1 -1
- package/dist/components/grading/editAnnotations.js +3 -7
- package/dist/components/grading/editAnnotations.js.map +1 -1
- package/dist/components/grading-instructions/AnswerGradingInstruction.d.ts.map +1 -1
- package/dist/components/grading-instructions/AnswerGradingInstruction.js +1 -3
- package/dist/components/grading-instructions/AnswerGradingInstruction.js.map +1 -1
- package/dist/components/grading-instructions/ExamGradingInstruction.js +1 -3
- package/dist/components/grading-instructions/ExamGradingInstruction.js.map +1 -1
- package/dist/components/grading-instructions/QuestionTitle.js +1 -1
- package/dist/components/grading-instructions/QuestionTitle.js.map +1 -1
- package/dist/components/results/QuestionTitle.js +1 -1
- package/dist/components/results/QuestionTitle.js.map +1 -1
- package/dist/components/results/Results.js +1 -1
- package/dist/components/results/Results.js.map +1 -1
- package/dist/components/results/internal/AnnotationList.js +1 -1
- package/dist/components/results/internal/AnnotationList.js.map +1 -1
- package/dist/components/shared/AttachmentLinks.d.ts.map +1 -1
- package/dist/components/shared/AttachmentLinks.js +2 -6
- package/dist/components/shared/AttachmentLinks.js.map +1 -1
- package/dist/components/shared/TableOfContents.js +1 -1
- package/dist/components/shared/TableOfContents.js.map +1 -1
- package/dist/components/shared/internal/RestrictedAudioPlayer.js +1 -1
- package/dist/components/shared/internal/RestrictedAudioPlayer.js.map +1 -1
- package/dist/components/surround.js +1 -1
- package/dist/components/surround.js.map +1 -1
- package/dist/formatting.js +1 -1
- package/dist/formatting.js.map +1 -1
- package/dist/main-bundle.js +1 -1
- package/dist/shortDisplayNumber.js +1 -1
- package/dist/shortDisplayNumber.js.map +1 -1
- package/package.json +2 -2
@@ -61,12 +61,12 @@ const language = 'fi-FI';
|
|
61
61
|
const getMediaMetadata = (__, type) => Promise.resolve(type === 'audio' ? { duration: 999 } : { width: 999, height: 999 });
|
62
62
|
const exam = (0, exam_engine_exams_1.listExams)().find((e) => e.includes(testExam));
|
63
63
|
if (exam == null) {
|
64
|
-
throw new Error(
|
64
|
+
throw new Error(`Could not find the exam file to use in test: ${testExam}`);
|
65
65
|
}
|
66
66
|
let result;
|
67
67
|
let doc;
|
68
68
|
let topLevelQuestions;
|
69
|
-
describe(
|
69
|
+
describe(`Total score calculation for ${testExam}`, () => {
|
70
70
|
beforeAll(async () => {
|
71
71
|
const source = await fs_1.promises.readFile(exam, 'utf-8');
|
72
72
|
const results = await (0, exam_engine_mastering_1.masterExam)(source, () => '', getMediaMetadata);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ResultsContext.test.js","sourceRoot":"","sources":["../../../__tests__/results/ResultsContext.test.tsx"],"names":[],"mappings":";;;;;AAAA,+FAAsE;AACtE,iEAAqD;AACrD,yEAA6F;AAC7F,2BAAmC;AACnC,yCAAiC;AAEjC,gFAAwH;AACxH,mDAA8C;AAE9C,MAAM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AAC,CAAC,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAA;AAErF,MAAM,IAAI,GAAG,IAAA,6BAAS,GAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAA;AAC1D,IAAI,IAAI,IAAI,IAAI,EAAE;IAChB,MAAM,IAAI,KAAK,CAAC
|
1
|
+
{"version":3,"file":"ResultsContext.test.js","sourceRoot":"","sources":["../../../__tests__/results/ResultsContext.test.tsx"],"names":[],"mappings":";;;;;AAAA,+FAAsE;AACtE,iEAAqD;AACrD,yEAA6F;AAC7F,2BAAmC;AACnC,yCAAiC;AAEjC,gFAAwH;AACxH,mDAA8C;AAE9C,MAAM,SAAS,GAAY;IACzB;QACE,UAAU,EAAE,GAAG;QACf,QAAQ,EAAE,CAAC;QACX,WAAW,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;KAC1B;IACD;QACE,UAAU,EAAE,CAAC;QACb,QAAQ,EAAE,CAAC;QACX,UAAU,EAAE;YACV,KAAK,EAAE,CAAC;SACT;QACD,SAAS,EAAE;YACT,MAAM,EAAE;gBACN,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;aAC/B;SACF;QACD,UAAU,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE;KACrD;CACF,CAAA;AAED,MAAM,OAAO,GAAiB;IAC5B;QACE,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,GAAG;QACf,KAAK,EAAE,IAAI;QACX,aAAa,EAAE,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