@digabi/exam-engine-core 19.7.1 → 19.8.0-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/__tests__/AnsweringInstructions.test.js +11 -11
- package/dist/__tests__/AnsweringInstructions.test.js.map +1 -1
- package/dist/__tests__/examServerApi.js +2 -2
- package/dist/__tests__/examServerApi.js.map +1 -1
- package/dist/__tests__/renderAnnotations.test.js +18 -18
- package/dist/__tests__/results/AnnotationList.test.js +27 -27
- package/dist/__tests__/results/ResultsContext.test.js +37 -37
- package/dist/__tests__/results/ResultsContext.test.js.map +1 -1
- package/dist/__tests__/results/ResultsExamQuestionAutoScore.test.js +4 -4
- package/dist/__tests__/results/ResultsExamQuestionManualScore.test.js +19 -19
- package/dist/__tests__/testExamRendering.js +14 -15
- package/dist/__tests__/testExamRendering.js.map +1 -1
- package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
- package/dist/__tests__/validateAnswers.test.js +28 -25
- package/dist/__tests__/validateAnswers.test.js.map +1 -1
- package/dist/components/AnswerToolbar.d.ts +1 -1
- package/dist/components/AnswerToolbar.d.ts.map +1 -1
- package/dist/components/AnswerToolbar.js +2 -2
- package/dist/components/AnswerToolbar.js.map +1 -1
- package/dist/components/AnsweringInstructions.js +1 -1
- package/dist/components/AnsweringInstructions.js.map +1 -1
- package/dist/components/DocumentTitle.js +1 -1
- package/dist/components/DocumentTitle.js.map +1 -1
- package/dist/components/SectionElement.js +1 -1
- package/dist/components/SectionElement.js.map +1 -1
- package/dist/components/attachments/Attachments.js +1 -1
- package/dist/components/attachments/ExternalMaterial.d.ts.map +1 -1
- package/dist/components/attachments/ExternalMaterial.js +5 -1
- package/dist/components/attachments/ExternalMaterial.js.map +1 -1
- package/dist/components/attachments/Question.js +1 -1
- package/dist/components/attachments/Question.js.map +1 -1
- package/dist/components/context/CommonExamContext.js +1 -1
- package/dist/components/context/ExamContext.js +1 -1
- package/dist/components/context/QuestionContext.js +1 -1
- package/dist/components/context/ResultsContext.js +7 -6
- package/dist/components/context/ResultsContext.js.map +1 -1
- package/dist/components/context/SectionContext.js +2 -2
- package/dist/components/context/SectionContext.js.map +1 -1
- package/dist/components/exam/ChoiceAnswer.js +6 -6
- package/dist/components/exam/ChoiceAnswer.js.map +1 -1
- package/dist/components/exam/DropdownAnswer.js +10 -10
- package/dist/components/exam/DropdownAnswer.js.map +1 -1
- package/dist/components/exam/Exam.d.ts +1 -0
- package/dist/components/exam/Exam.d.ts.map +1 -1
- package/dist/components/exam/Exam.js +75 -16
- package/dist/components/exam/Exam.js.map +1 -1
- package/dist/components/exam/ExternalMaterial.js +1 -1
- package/dist/components/exam/Hints.js +3 -3
- package/dist/components/exam/Hints.js.map +1 -1
- package/dist/components/exam/Question.d.ts +4 -0
- package/dist/components/exam/Question.d.ts.map +1 -1
- package/dist/components/exam/Question.js +41 -5
- package/dist/components/exam/Question.js.map +1 -1
- package/dist/components/exam/QuestionTitle.js +1 -1
- package/dist/components/exam/RichTextAnswer.d.ts +6 -1
- package/dist/components/exam/RichTextAnswer.d.ts.map +1 -1
- package/dist/components/exam/RichTextAnswer.js +14 -2
- package/dist/components/exam/RichTextAnswer.js.map +1 -1
- package/dist/components/exam/Section.js +2 -2
- package/dist/components/exam/Section.js.map +1 -1
- package/dist/components/exam/internal/ErrorIndicator.d.ts +1 -1
- package/dist/components/exam/internal/ErrorIndicator.d.ts.map +1 -1
- package/dist/components/exam/internal/ErrorIndicator.js +4 -4
- package/dist/components/exam/internal/ErrorIndicator.js.map +1 -1
- package/dist/components/exam/internal/ProgressBar.js +1 -1
- package/dist/components/exam/internal/ProgressBar.js.map +1 -1
- package/dist/components/exam/internal/TextAnswerInput.d.ts.map +1 -1
- package/dist/components/exam/internal/TextAnswerInput.js +14 -13
- package/dist/components/exam/internal/TextAnswerInput.js.map +1 -1
- package/dist/components/grading/AnswerCharacterCounter.d.ts +1 -1
- package/dist/components/grading/AnswerCharacterCounter.d.ts.map +1 -1
- package/dist/components/grading/AnswerCharacterCounter.js +3 -3
- package/dist/components/grading/AnswerCharacterCounter.js.map +1 -1
- package/dist/components/grading/GradingAnswer.js +9 -9
- package/dist/components/grading/GradingAnswer.js.map +1 -1
- package/dist/components/grading/GradingAnswerAnnotationList.d.ts +1 -1
- package/dist/components/grading/GradingAnswerAnnotationList.d.ts.map +1 -1
- package/dist/components/grading/GradingAnswerAnnotationList.js +2 -2
- package/dist/components/grading/GradingAnswerAnnotationList.js.map +1 -1
- package/dist/components/grading/editAnnotations.js +14 -14
- package/dist/components/grading/editAnnotations.js.map +1 -1
- package/dist/components/grading/largeImageDetector.js +2 -2
- package/dist/components/grading/largeImageDetector.js.map +1 -1
- package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
- package/dist/components/grading-instructions/GradingInstructions.js +10 -3
- package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
- package/dist/components/grading-instructions/Question.js +1 -1
- package/dist/components/grading-instructions/QuestionTitle.js +1 -1
- package/dist/components/results/ChoiceAnswer.js +8 -7
- package/dist/components/results/ChoiceAnswer.js.map +1 -1
- package/dist/components/results/DropdownAnswer.js +5 -5
- package/dist/components/results/DropdownAnswer.js.map +1 -1
- package/dist/components/results/Question.js +3 -3
- package/dist/components/results/Question.js.map +1 -1
- package/dist/components/results/QuestionTitle.js +1 -1
- package/dist/components/results/Results.d.ts.map +1 -1
- package/dist/components/results/Results.js +6 -2
- package/dist/components/results/Results.js.map +1 -1
- package/dist/components/results/Section.js +1 -1
- package/dist/components/results/Section.js.map +1 -1
- package/dist/components/results/SingleLineAnswer.d.ts +1 -1
- package/dist/components/results/SingleLineAnswer.d.ts.map +1 -1
- package/dist/components/results/SingleLineAnswer.js +1 -1
- package/dist/components/results/SingleLineAnswer.js.map +1 -1
- package/dist/components/results/internal/AnnotationList.js +2 -2
- package/dist/components/results/internal/AnnotationList.js.map +1 -1
- package/dist/components/results/internal/QuestionManualScore.js +3 -3
- package/dist/components/results/internal/QuestionScoresContainer.d.ts +1 -1
- package/dist/components/results/internal/QuestionScoresContainer.d.ts.map +1 -1
- package/dist/components/results/internal/QuestionScoresContainer.js +2 -2
- package/dist/components/results/internal/QuestionScoresContainer.js.map +1 -1
- package/dist/components/shared/AnnotationLists.d.ts +1 -1
- package/dist/components/shared/AnnotationLists.d.ts.map +1 -1
- package/dist/components/shared/AnnotationLists.js +1 -1
- package/dist/components/shared/AnnotationLists.js.map +1 -1
- package/dist/components/shared/AnswerIndicator.d.ts +11 -0
- package/dist/components/shared/AnswerIndicator.d.ts.map +1 -0
- package/dist/components/shared/AnswerIndicator.js +22 -0
- package/dist/components/shared/AnswerIndicator.js.map +1 -0
- package/dist/components/shared/AttachmentLink.js +1 -1
- package/dist/components/shared/AttachmentLink.js.map +1 -1
- package/dist/components/shared/AttachmentLinks.js +3 -3
- package/dist/components/shared/AttachmentLinks.js.map +1 -1
- package/dist/components/shared/ExamTranslation.d.ts +6 -0
- package/dist/components/shared/ExamTranslation.d.ts.map +1 -0
- package/dist/components/shared/ExamTranslation.js +10 -0
- package/dist/components/shared/ExamTranslation.js.map +1 -0
- package/dist/components/shared/ImageOverlay.js +3 -3
- package/dist/components/shared/ImageOverlay.js.map +1 -1
- package/dist/components/shared/QuestionNumber.d.ts +4 -0
- package/dist/components/shared/QuestionNumber.d.ts.map +1 -0
- package/dist/components/shared/QuestionNumber.js +12 -0
- package/dist/components/shared/QuestionNumber.js.map +1 -0
- package/dist/components/shared/Reference.js +1 -1
- package/dist/components/shared/References.js +1 -1
- package/dist/components/shared/References.js.map +1 -1
- package/dist/components/shared/Score.js +1 -1
- package/dist/components/shared/TableOfContents.d.ts +1 -0
- package/dist/components/shared/TableOfContents.d.ts.map +1 -1
- package/dist/components/shared/TableOfContents.js +86 -26
- package/dist/components/shared/TableOfContents.js.map +1 -1
- package/dist/components/shared/internal/ResponsiveMediaContainer.js +3 -3
- package/dist/components/shared/internal/ResponsiveMediaContainer.js.map +1 -1
- package/dist/components/shared/internal/RestrictedAudioPlayer.d.ts +1 -1
- package/dist/components/shared/internal/RestrictedAudioPlayer.d.ts.map +1 -1
- package/dist/components/shared/internal/RestrictedAudioPlayer.js +2 -2
- package/dist/components/shared/internal/RestrictedAudioPlayer.js.map +1 -1
- package/dist/dom-utils.js +1 -1
- package/dist/dom-utils.js.map +1 -1
- package/dist/fonts.js +1 -1
- package/dist/fonts.js.map +1 -1
- package/dist/i18n/A_E.js +2 -2
- package/dist/i18n/BA.js +1 -1
- package/dist/i18n/CA.js +1 -1
- package/dist/i18n/EA.js +2 -2
- package/dist/i18n/FA.js +2 -2
- package/dist/i18n/GC.js +2 -2
- package/dist/i18n/I.js +3 -3
- package/dist/i18n/M.js +1 -1
- package/dist/i18n/O_E.js +2 -2
- package/dist/i18n/PA.js +2 -2
- package/dist/i18n/SA.js +2 -2
- package/dist/i18n/TC.js +2 -2
- package/dist/i18n/VA.js +2 -2
- package/dist/i18n/Z.js +3 -3
- package/dist/i18n/fi-FI.d.ts +3 -0
- package/dist/i18n/fi-FI.d.ts.map +1 -1
- package/dist/i18n/fi-FI.js +17 -14
- package/dist/i18n/fi-FI.js.map +1 -1
- package/dist/i18n/index.d.ts +2 -137
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/index.js +8 -8
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n/sv-FI.d.ts.map +1 -1
- package/dist/i18n/sv-FI.js +18 -14
- package/dist/i18n/sv-FI.js.map +1 -1
- package/dist/main-bundle.js +1 -1
- package/dist/main-bundle.js.LICENSE.txt +0 -5
- package/dist/main.css +1 -1
- package/dist/parser/parseExam.js +5 -5
- package/dist/parser/parseExam.js.map +1 -1
- package/dist/parser/parseExamStructure.js +4 -4
- package/dist/renderAnnotations.js +8 -8
- package/dist/renderAnnotations.js.map +1 -1
- package/dist/store/answers/reducer.js +2 -2
- package/dist/store/audio/reducer.js +3 -3
- package/dist/store/audio/sagas.js +1 -1
- package/dist/store/audio/sagas.js.map +1 -1
- package/dist/store/cas/reducer.js +1 -1
- package/dist/store/cas/sagas.js +1 -1
- package/dist/store/countdown.js +1 -1
- package/dist/store/countdown.js.map +1 -1
- package/dist/store/index.js +4 -4
- package/dist/validateAnswers.d.ts +1 -0
- package/dist/validateAnswers.d.ts.map +1 -1
- package/dist/validateAnswers.js +8 -7
- package/dist/validateAnswers.js.map +1 -1
- package/package.json +18 -18
@@ -12,7 +12,7 @@ const QuestionManualScore_1 = __importDefault(require("../../src/components/resu
|
|
12
12
|
const i18n_1 = require("../../src/i18n");
|
13
13
|
const defaultProps = {
|
14
14
|
maxScore: 6,
|
15
|
-
displayNumber: '1'
|
15
|
+
displayNumber: '1'
|
16
16
|
};
|
17
17
|
const defaultScores = {
|
18
18
|
questionId: 1,
|
@@ -22,12 +22,12 @@ const defaultScores = {
|
|
22
22
|
scores: [
|
23
23
|
{ score: 4, shortCode: 'SE3' },
|
24
24
|
{ score: 3, shortCode: 'SE2' },
|
25
|
-
{ score: 2, shortCode: 'SE1' }
|
25
|
+
{ score: 2, shortCode: 'SE1' }
|
26
26
|
],
|
27
27
|
annotations: [],
|
28
|
-
nonAnswerDetails: {}
|
28
|
+
nonAnswerDetails: {}
|
29
29
|
},
|
30
|
-
inspection: { score: 5, shortCodes: ['IN1', 'IN2'] }
|
30
|
+
inspection: { score: 5, shortCodes: ['IN1', 'IN2'] }
|
31
31
|
};
|
32
32
|
describe('<QuestionManualScore />', () => {
|
33
33
|
let i18n;
|
@@ -38,14 +38,14 @@ describe('<QuestionManualScore />', () => {
|
|
38
38
|
it('renders without score', () => {
|
39
39
|
const props = {
|
40
40
|
...defaultProps,
|
41
|
-
scores: undefined
|
41
|
+
scores: undefined
|
42
42
|
};
|
43
43
|
expect(renderWithContext(props, []).toJSON()).toMatchSnapshot();
|
44
44
|
});
|
45
45
|
it('renders with pregrading score', () => {
|
46
46
|
const props = {
|
47
47
|
...defaultProps,
|
48
|
-
scores: lodash_1.default.pick(defaultScores, 'pregrading', 'answerId', 'questionId')
|
48
|
+
scores: lodash_1.default.pick(defaultScores, 'pregrading', 'answerId', 'questionId')
|
49
49
|
};
|
50
50
|
expect(renderWithContext(props, []).toJSON()).toMatchSnapshot();
|
51
51
|
});
|
@@ -54,36 +54,36 @@ describe('<QuestionManualScore />', () => {
|
|
54
54
|
...defaultProps,
|
55
55
|
scores: {
|
56
56
|
censoring: { scores: [defaultScores.censoring.scores[0]] },
|
57
|
-
...lodash_1.default.pick(defaultScores, 'pregrading', 'answerId', 'questionId')
|
58
|
-
}
|
57
|
+
...lodash_1.default.pick(defaultScores, 'pregrading', 'answerId', 'questionId')
|
58
|
+
}
|
59
59
|
};
|
60
60
|
expect(renderWithContext(props, []).toJSON()).toMatchSnapshot();
|
61
61
|
});
|
62
62
|
it('renders with pregrading and three censor scores', () => {
|
63
63
|
const props = {
|
64
64
|
...defaultProps,
|
65
|
-
scores: lodash_1.default.pick(defaultScores, 'pregrading', 'censoring', 'answerId', 'questionId')
|
65
|
+
scores: lodash_1.default.pick(defaultScores, 'pregrading', 'censoring', 'answerId', 'questionId')
|
66
66
|
};
|
67
67
|
expect(renderWithContext(props, []).toJSON()).toMatchSnapshot();
|
68
68
|
});
|
69
69
|
it('renders with pregrading, censor and inspection scores', () => {
|
70
70
|
const props = {
|
71
71
|
...defaultProps,
|
72
|
-
scores: defaultScores
|
72
|
+
scores: defaultScores
|
73
73
|
};
|
74
74
|
expect(renderWithContext(props, []).toJSON()).toMatchSnapshot();
|
75
75
|
});
|
76
76
|
it('renders with displayNumber where there are more than one answer', () => {
|
77
77
|
const props = {
|
78
78
|
...defaultProps,
|
79
|
-
scores: lodash_1.default.pick(defaultScores, 'pregrading', 'answerId', 'questionId')
|
79
|
+
scores: lodash_1.default.pick(defaultScores, 'pregrading', 'answerId', 'questionId')
|
80
80
|
};
|
81
81
|
expect(renderWithContext(props, [{}, {}]).toJSON()).toMatchSnapshot();
|
82
82
|
});
|
83
83
|
it('renders with NoPregrading when there are no scores', () => {
|
84
84
|
const props = {
|
85
85
|
...defaultProps,
|
86
|
-
scores: lodash_1.default.pick(defaultScores, 'answerId', 'questionId')
|
86
|
+
scores: lodash_1.default.pick(defaultScores, 'answerId', 'questionId')
|
87
87
|
};
|
88
88
|
expect(renderWithContext(props, []).toJSON()).toMatchSnapshot();
|
89
89
|
});
|
@@ -92,8 +92,8 @@ describe('<QuestionManualScore />', () => {
|
|
92
92
|
...defaultProps,
|
93
93
|
scores: {
|
94
94
|
preGrading: { comment: 'comment' },
|
95
|
-
...lodash_1.default.pick(defaultScores, 'answerId', 'questionId')
|
96
|
-
}
|
95
|
+
...lodash_1.default.pick(defaultScores, 'answerId', 'questionId')
|
96
|
+
}
|
97
97
|
};
|
98
98
|
expect(renderWithContext(props, []).toJSON()).toMatchSnapshot();
|
99
99
|
});
|
@@ -102,15 +102,15 @@ describe('<QuestionManualScore />', () => {
|
|
102
102
|
...defaultProps,
|
103
103
|
scores: {
|
104
104
|
pregrading: { score: 0 },
|
105
|
-
...lodash_1.default.pick(defaultScores, 'answerId', 'questionId')
|
106
|
-
}
|
105
|
+
...lodash_1.default.pick(defaultScores, 'answerId', 'questionId')
|
106
|
+
}
|
107
107
|
};
|
108
108
|
expect(renderWithContext(props, []).toJSON()).toMatchSnapshot();
|
109
109
|
});
|
110
110
|
it('renders without NoPregrading when there are scores', () => {
|
111
111
|
const props = {
|
112
112
|
...defaultProps,
|
113
|
-
scores: lodash_1.default.pick(defaultScores, 'answerId', 'questionId', 'pregrading', 'censoring')
|
113
|
+
scores: lodash_1.default.pick(defaultScores, 'answerId', 'questionId', 'pregrading', 'censoring')
|
114
114
|
};
|
115
115
|
expect(renderWithContext(props, []).toJSON()).toMatchSnapshot();
|
116
116
|
});
|
@@ -120,7 +120,7 @@ describe('<QuestionManualScore />', () => {
|
|
120
120
|
i18n = (0, i18n_1.initI18n)('fi-SV');
|
121
121
|
const props = {
|
122
122
|
...defaultProps,
|
123
|
-
scores: defaultScores
|
123
|
+
scores: defaultScores
|
124
124
|
};
|
125
125
|
expect(renderWithContext(props, []).toJSON()).toMatchSnapshot();
|
126
126
|
});
|
@@ -133,7 +133,7 @@ describe('<QuestionManualScore />', () => {
|
|
133
133
|
maxScore: 2,
|
134
134
|
level: 2,
|
135
135
|
childQuestions: [],
|
136
|
-
questionLabelIds: ''
|
136
|
+
questionLabelIds: ''
|
137
137
|
};
|
138
138
|
function renderWithContext(props, answers) {
|
139
139
|
return (0, react_test_renderer_1.create)(react_1.default.createElement(QuestionContext_1.QuestionContext.Provider, { value: { ...contextProps, answers } },
|
@@ -13,12 +13,12 @@ const react_1 = __importDefault(require("react"));
|
|
13
13
|
const react_test_renderer_1 = require("react-test-renderer");
|
14
14
|
const examServerApi_1 = require("./examServerApi");
|
15
15
|
const exam_engine_generator_1 = require("@digabi/exam-engine-generator");
|
16
|
-
describe.each((0, exam_engine_exams_1.listExams)().map(
|
16
|
+
describe.each((0, exam_engine_exams_1.listExams)().map(exam => [path_1.default.basename(exam), exam]))('%s', (_basename, exam) => {
|
17
17
|
const resolveAttachment = (filename) => path_1.default.resolve(path_1.default.dirname(exam), 'attachments', filename);
|
18
18
|
it('renders properly', async () => {
|
19
19
|
const source = await fs_1.promises.readFile(exam, 'utf-8');
|
20
20
|
const results = await (0, exam_engine_mastering_1.masterExam)(source, () => '', (0, exam_engine_mastering_1.getMediaMetadataFromLocalFile)(resolveAttachment), {
|
21
|
-
removeCorrectAnswers: false
|
21
|
+
removeCorrectAnswers: false
|
22
22
|
});
|
23
23
|
for (const { xml, language, gradingStructure } of results) {
|
24
24
|
const doc = (0, parseExam_1.default)(xml, true);
|
@@ -27,19 +27,20 @@ describe.each((0, exam_engine_exams_1.listExams)().map((exam) => [path_1.default
|
|
27
27
|
answers: [],
|
28
28
|
attachmentsURL: '/attachments',
|
29
29
|
resolveAttachment: (filename) => `/attachments/${encodeURIComponent(filename)}`,
|
30
|
-
language
|
30
|
+
language
|
31
31
|
};
|
32
32
|
const examProps = {
|
33
33
|
...commonProps,
|
34
34
|
casStatus: 'forbidden',
|
35
35
|
examServerApi: examServerApi_1.examServerApi,
|
36
36
|
restrictedAudioPlaybackStats: [],
|
37
|
+
type: 'normal'
|
37
38
|
};
|
38
39
|
const resultsProps = {
|
39
40
|
...commonProps,
|
40
41
|
gradingStructure,
|
41
42
|
answers: (0, exam_engine_generator_1.generateAnswers)(gradingStructure),
|
42
|
-
scores: mkScores(gradingStructure)
|
43
|
+
scores: mkScores(gradingStructure)
|
43
44
|
};
|
44
45
|
expect((0, react_test_renderer_1.create)(react_1.default.createElement(exam_engine_core_1.Exam, { ...examProps })).toJSON()).toMatchSnapshot('<Exam />');
|
45
46
|
expect((0, react_test_renderer_1.create)(react_1.default.createElement(exam_engine_core_1.Attachments, { ...examProps })).toJSON()).toMatchSnapshot('<Attachments />');
|
@@ -60,35 +61,33 @@ function generateScore(question, i) {
|
|
60
61
|
pregrading: {
|
61
62
|
score: Math.min(question.maxScore, i),
|
62
63
|
comment: `Pregading comment to question ${question.displayNumber}`,
|
63
|
-
annotations: [
|
64
|
-
{ startIndex: 0, length: 0, message: `Pregading annotation to question ${question.displayNumber}` },
|
65
|
-
],
|
64
|
+
annotations: [{ startIndex: 0, length: 0, message: `Pregading annotation to question ${question.displayNumber}` }]
|
66
65
|
},
|
67
66
|
censoring: {
|
68
67
|
scores: [
|
69
68
|
{
|
70
69
|
score: Math.min(question.maxScore, i),
|
71
|
-
shortCode: 'TestCen1'
|
70
|
+
shortCode: 'TestCen1'
|
72
71
|
},
|
73
72
|
{
|
74
73
|
score: Math.min(question.maxScore, i),
|
75
|
-
shortCode: 'TestCen2'
|
74
|
+
shortCode: 'TestCen2'
|
76
75
|
},
|
77
76
|
{
|
78
77
|
score: Math.min(question.maxScore, i),
|
79
|
-
shortCode: 'TestCen3'
|
80
|
-
}
|
78
|
+
shortCode: 'TestCen3'
|
79
|
+
}
|
81
80
|
],
|
82
81
|
comment: `Censor comment to question ${question.displayNumber}`,
|
83
82
|
annotations: [
|
84
|
-
{ startIndex: 0, length: 0, message: `Censoring annotation to question ${question.displayNumber}` }
|
83
|
+
{ startIndex: 0, length: 0, message: `Censoring annotation to question ${question.displayNumber}` }
|
85
84
|
],
|
86
|
-
nonAnswerDetails: { shortCode: 'CEN' }
|
85
|
+
nonAnswerDetails: { shortCode: 'CEN' }
|
87
86
|
},
|
88
87
|
inspection: {
|
89
88
|
score: Math.min(question.maxScore, i),
|
90
|
-
shortCodes: ['TestIns1', 'TestIns2']
|
91
|
-
}
|
89
|
+
shortCodes: ['TestIns1', 'TestIns2']
|
90
|
+
}
|
92
91
|
};
|
93
92
|
}
|
94
93
|
//# sourceMappingURL=testExamRendering.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"testExamRendering.js","sourceRoot":"","sources":["../../__tests__/testExamRendering.tsx"],"names":[],"mappings":";;;;;AAAA,+DAQiC;AACjC,+FAAsE;AACtE,iEAAqD;AACrD,yEAAyF;AACzF,2BAAmC;AACnC,gDAAuB;AACvB,kDAAyB;AACzB,6DAA4C;AAG5C,mDAA+C;AAC/C,yEAA+D;AAE/D,QAAQ,CAAC,IAAI,CAAC,IAAA,6BAAS,GAAE,CAAC,GAAG,CAAC,
|
1
|
+
{"version":3,"file":"testExamRendering.js","sourceRoot":"","sources":["../../__tests__/testExamRendering.tsx"],"names":[],"mappings":";;;;;AAAA,+DAQiC;AACjC,+FAAsE;AACtE,iEAAqD;AACrD,yEAAyF;AACzF,2BAAmC;AACnC,gDAAuB;AACvB,kDAAyB;AACzB,6DAA4C;AAG5C,mDAA+C;AAC/C,yEAA+D;AAE/D,QAAQ,CAAC,IAAI,CAAC,IAAA,6BAAS,GAAE,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,cAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE;IAC5F,MAAM,iBAAiB,GAAG,CAAC,QAAgB,EAAE,EAAE,CAAC,cAAI,CAAC,OAAO,CAAC,cAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,aAAa,EAAE,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