@digabi/exam-engine-core 19.15.5 → 19.15.6-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (315) hide show
  1. package/dist/__tests__/examServerApi.js +1 -1
  2. package/dist/__tests__/examServerApi.js.map +1 -1
  3. package/dist/__tests__/testExamRendering.js +2 -1
  4. package/dist/__tests__/testExamRendering.js.map +1 -1
  5. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  6. package/dist/components/exam/Exam.d.ts.map +1 -1
  7. package/dist/components/exam/Exam.js +7 -6
  8. package/dist/components/exam/Exam.js.map +1 -1
  9. package/dist/components/exam/ExamineExam.d.ts +5 -0
  10. package/dist/components/exam/ExamineExam.d.ts.map +1 -0
  11. package/dist/components/exam/ExamineExam.js +25 -0
  12. package/dist/components/exam/ExamineExam.js.map +1 -0
  13. package/dist/components/results/DropdownAnswer.js +5 -5
  14. package/dist/components/results/DropdownAnswer.js.map +1 -1
  15. package/dist/components/results/EndExamSession.d.ts +5 -0
  16. package/dist/components/results/EndExamSession.d.ts.map +1 -0
  17. package/dist/components/results/EndExamSession.js +43 -0
  18. package/dist/components/results/EndExamSession.js.map +1 -0
  19. package/dist/components/results/MultiLineAnswer.js +1 -1
  20. package/dist/components/results/MultiLineAnswer.js.map +1 -1
  21. package/dist/components/results/Question.js +1 -1
  22. package/dist/components/results/Question.js.map +1 -1
  23. package/dist/components/results/QuestionTitle.js +3 -3
  24. package/dist/components/results/QuestionTitle.js.map +1 -1
  25. package/dist/components/results/Results.d.ts +1 -0
  26. package/dist/components/results/Results.d.ts.map +1 -1
  27. package/dist/components/results/Results.js +19 -22
  28. package/dist/components/results/Results.js.map +1 -1
  29. package/dist/components/results/SingleLineAnswer.js +1 -1
  30. package/dist/components/results/SingleLineAnswer.js.map +1 -1
  31. package/dist/components/results/internal/QuestionScoresContainer.js +3 -3
  32. package/dist/components/results/internal/QuestionScoresContainer.js.map +1 -1
  33. package/dist/components/results/isExamExaminePageHook.d.ts +2 -0
  34. package/dist/components/results/isExamExaminePageHook.d.ts.map +1 -0
  35. package/dist/components/results/{isExamFinishPageHook.js → isExamExaminePageHook.js} +2 -2
  36. package/dist/components/results/isExamExaminePageHook.js.map +1 -0
  37. package/dist/i18n/fi-FI.d.ts +10 -5
  38. package/dist/i18n/fi-FI.d.ts.map +1 -1
  39. package/dist/i18n/fi-FI.js +10 -5
  40. package/dist/i18n/fi-FI.js.map +1 -1
  41. package/dist/i18n/sv-FI.d.ts.map +1 -1
  42. package/dist/i18n/sv-FI.js +10 -5
  43. package/dist/i18n/sv-FI.js.map +1 -1
  44. package/dist/main-bundle.js +1 -1
  45. package/dist/main.css +1 -1
  46. package/dist/types/ExamServerAPI.d.ts +2 -1
  47. package/dist/types/ExamServerAPI.d.ts.map +1 -1
  48. package/package.json +2 -2
  49. package/dist/components/AttachmentContext.d.ts +0 -14
  50. package/dist/components/AttachmentContext.d.ts.map +0 -1
  51. package/dist/components/AttachmentContext.js +0 -12
  52. package/dist/components/AttachmentContext.js.map +0 -1
  53. package/dist/components/AttachmentLink.d.ts +0 -6
  54. package/dist/components/AttachmentLink.d.ts.map +0 -1
  55. package/dist/components/AttachmentLink.js +0 -24
  56. package/dist/components/AttachmentLink.js.map +0 -1
  57. package/dist/components/AttachmentLinkAnchor.d.ts +0 -7
  58. package/dist/components/AttachmentLinkAnchor.d.ts.map +0 -1
  59. package/dist/components/AttachmentLinkAnchor.js +0 -4
  60. package/dist/components/AttachmentLinkAnchor.js.map +0 -1
  61. package/dist/components/AttachmentLinks.d.ts +0 -6
  62. package/dist/components/AttachmentLinks.d.ts.map +0 -1
  63. package/dist/components/AttachmentLinks.js +0 -58
  64. package/dist/components/AttachmentLinks.js.map +0 -1
  65. package/dist/components/Attachments.d.ts +0 -5
  66. package/dist/components/Attachments.d.ts.map +0 -1
  67. package/dist/components/Attachments.js +0 -43
  68. package/dist/components/Attachments.js.map +0 -1
  69. package/dist/components/AttachmentsAttachment.d.ts +0 -5
  70. package/dist/components/AttachmentsAttachment.d.ts.map +0 -1
  71. package/dist/components/AttachmentsAttachment.js +0 -8
  72. package/dist/components/AttachmentsAttachment.js.map +0 -1
  73. package/dist/components/AttachmentsAttachmentTitle.d.ts +0 -6
  74. package/dist/components/AttachmentsAttachmentTitle.d.ts.map +0 -1
  75. package/dist/components/AttachmentsAttachmentTitle.js +0 -12
  76. package/dist/components/AttachmentsAttachmentTitle.js.map +0 -1
  77. package/dist/components/AttachmentsExternalMaterial.d.ts +0 -9
  78. package/dist/components/AttachmentsExternalMaterial.d.ts.map +0 -1
  79. package/dist/components/AttachmentsExternalMaterial.js +0 -40
  80. package/dist/components/AttachmentsExternalMaterial.js.map +0 -1
  81. package/dist/components/AttachmentsQuestion.d.ts +0 -5
  82. package/dist/components/AttachmentsQuestion.d.ts.map +0 -1
  83. package/dist/components/AttachmentsQuestion.js +0 -16
  84. package/dist/components/AttachmentsQuestion.js.map +0 -1
  85. package/dist/components/AttachmentsQuestionTitle.d.ts +0 -6
  86. package/dist/components/AttachmentsQuestionTitle.d.ts.map +0 -1
  87. package/dist/components/AttachmentsQuestionTitle.js +0 -13
  88. package/dist/components/AttachmentsQuestionTitle.js.map +0 -1
  89. package/dist/components/Audio.d.ts +0 -6
  90. package/dist/components/Audio.d.ts.map +0 -1
  91. package/dist/components/Audio.js +0 -29
  92. package/dist/components/Audio.js.map +0 -1
  93. package/dist/components/AudioGroup.d.ts +0 -6
  94. package/dist/components/AudioGroup.d.ts.map +0 -1
  95. package/dist/components/AudioGroup.js +0 -9
  96. package/dist/components/AudioGroup.js.map +0 -1
  97. package/dist/components/AudioPlaybackError.d.ts +0 -7
  98. package/dist/components/AudioPlaybackError.d.ts.map +0 -1
  99. package/dist/components/AudioPlaybackError.js +0 -12
  100. package/dist/components/AudioPlaybackError.js.map +0 -1
  101. package/dist/components/AudioTest.d.ts +0 -6
  102. package/dist/components/AudioTest.d.ts.map +0 -1
  103. package/dist/components/AudioTest.js +0 -29
  104. package/dist/components/AudioTest.js.map +0 -1
  105. package/dist/components/ChoiceAnswer.d.ts +0 -12
  106. package/dist/components/ChoiceAnswer.d.ts.map +0 -1
  107. package/dist/components/ChoiceAnswer.js +0 -60
  108. package/dist/components/ChoiceAnswer.js.map +0 -1
  109. package/dist/components/CommonExamContext.d.ts +0 -16
  110. package/dist/components/CommonExamContext.d.ts.map +0 -1
  111. package/dist/components/CommonExamContext.js +0 -22
  112. package/dist/components/CommonExamContext.js.map +0 -1
  113. package/dist/components/DropdownAnswer.d.ts +0 -12
  114. package/dist/components/DropdownAnswer.d.ts.map +0 -1
  115. package/dist/components/DropdownAnswer.js +0 -85
  116. package/dist/components/DropdownAnswer.js.map +0 -1
  117. package/dist/components/Exam.d.ts +0 -40
  118. package/dist/components/Exam.d.ts.map +0 -1
  119. package/dist/components/Exam.js +0 -106
  120. package/dist/components/Exam.js.map +0 -1
  121. package/dist/components/ExamAttachment.d.ts +0 -5
  122. package/dist/components/ExamAttachment.d.ts.map +0 -1
  123. package/dist/components/ExamAttachment.js +0 -8
  124. package/dist/components/ExamAttachment.js.map +0 -1
  125. package/dist/components/ExamContext.d.ts +0 -10
  126. package/dist/components/ExamContext.d.ts.map +0 -1
  127. package/dist/components/ExamContext.js +0 -11
  128. package/dist/components/ExamContext.js.map +0 -1
  129. package/dist/components/ExamFooter.d.ts +0 -6
  130. package/dist/components/ExamFooter.d.ts.map +0 -1
  131. package/dist/components/ExamFooter.js +0 -7
  132. package/dist/components/ExamFooter.js.map +0 -1
  133. package/dist/components/ExamInstruction.d.ts +0 -6
  134. package/dist/components/ExamInstruction.d.ts.map +0 -1
  135. package/dist/components/ExamInstruction.js +0 -6
  136. package/dist/components/ExamInstruction.js.map +0 -1
  137. package/dist/components/ExamQuestion.d.ts +0 -5
  138. package/dist/components/ExamQuestion.d.ts.map +0 -1
  139. package/dist/components/ExamQuestion.js +0 -16
  140. package/dist/components/ExamQuestion.js.map +0 -1
  141. package/dist/components/ExamQuestionInstruction.d.ts +0 -6
  142. package/dist/components/ExamQuestionInstruction.d.ts.map +0 -1
  143. package/dist/components/ExamQuestionInstruction.js +0 -6
  144. package/dist/components/ExamQuestionInstruction.js.map +0 -1
  145. package/dist/components/ExamQuestionTitle.d.ts +0 -6
  146. package/dist/components/ExamQuestionTitle.d.ts.map +0 -1
  147. package/dist/components/ExamQuestionTitle.js +0 -25
  148. package/dist/components/ExamQuestionTitle.js.map +0 -1
  149. package/dist/components/ExamSection.d.ts +0 -5
  150. package/dist/components/ExamSection.d.ts.map +0 -1
  151. package/dist/components/ExamSection.js +0 -30
  152. package/dist/components/ExamSection.js.map +0 -1
  153. package/dist/components/ExamSectionTitle.d.ts +0 -6
  154. package/dist/components/ExamSectionTitle.d.ts.map +0 -1
  155. package/dist/components/ExamSectionTitle.js +0 -21
  156. package/dist/components/ExamSectionTitle.js.map +0 -1
  157. package/dist/components/ExternalMaterialList.d.ts +0 -10
  158. package/dist/components/ExternalMaterialList.d.ts.map +0 -1
  159. package/dist/components/ExternalMaterialList.js +0 -31
  160. package/dist/components/ExternalMaterialList.js.map +0 -1
  161. package/dist/components/File.d.ts +0 -6
  162. package/dist/components/File.d.ts.map +0 -1
  163. package/dist/components/File.js +0 -15
  164. package/dist/components/File.js.map +0 -1
  165. package/dist/components/Formula.d.ts +0 -6
  166. package/dist/components/Formula.d.ts.map +0 -1
  167. package/dist/components/Formula.js +0 -12
  168. package/dist/components/Formula.js.map +0 -1
  169. package/dist/components/Hints.d.ts +0 -6
  170. package/dist/components/Hints.d.ts.map +0 -1
  171. package/dist/components/Hints.js +0 -32
  172. package/dist/components/Hints.js.map +0 -1
  173. package/dist/components/Image.d.ts +0 -6
  174. package/dist/components/Image.d.ts.map +0 -1
  175. package/dist/components/Image.js +0 -25
  176. package/dist/components/Image.js.map +0 -1
  177. package/dist/components/ImageOverlay.d.ts +0 -6
  178. package/dist/components/ImageOverlay.d.ts.map +0 -1
  179. package/dist/components/ImageOverlay.js +0 -45
  180. package/dist/components/ImageOverlay.js.map +0 -1
  181. package/dist/components/ProgressBar.d.ts +0 -6
  182. package/dist/components/ProgressBar.d.ts.map +0 -1
  183. package/dist/components/ProgressBar.js +0 -18
  184. package/dist/components/ProgressBar.js.map +0 -1
  185. package/dist/components/QuestionContext.d.ts +0 -14
  186. package/dist/components/QuestionContext.d.ts.map +0 -1
  187. package/dist/components/QuestionContext.js +0 -20
  188. package/dist/components/QuestionContext.js.map +0 -1
  189. package/dist/components/Reference.d.ts +0 -6
  190. package/dist/components/Reference.d.ts.map +0 -1
  191. package/dist/components/Reference.js +0 -63
  192. package/dist/components/Reference.js.map +0 -1
  193. package/dist/components/References.d.ts +0 -6
  194. package/dist/components/References.d.ts.map +0 -1
  195. package/dist/components/References.js +0 -23
  196. package/dist/components/References.js.map +0 -1
  197. package/dist/components/ResponsiveMediaContainer.d.ts +0 -17
  198. package/dist/components/ResponsiveMediaContainer.d.ts.map +0 -1
  199. package/dist/components/ResponsiveMediaContainer.js +0 -20
  200. package/dist/components/ResponsiveMediaContainer.js.map +0 -1
  201. package/dist/components/RestrictedAudioPlayer.d.ts +0 -11
  202. package/dist/components/RestrictedAudioPlayer.d.ts.map +0 -1
  203. package/dist/components/RestrictedAudioPlayer.js +0 -29
  204. package/dist/components/RestrictedAudioPlayer.js.map +0 -1
  205. package/dist/components/RichTextAnswer.d.ts +0 -31
  206. package/dist/components/RichTextAnswer.d.ts.map +0 -1
  207. package/dist/components/RichTextAnswer.js +0 -70
  208. package/dist/components/RichTextAnswer.js.map +0 -1
  209. package/dist/components/SaveIndicator.d.ts +0 -5
  210. package/dist/components/SaveIndicator.d.ts.map +0 -1
  211. package/dist/components/SaveIndicator.js +0 -15
  212. package/dist/components/SaveIndicator.js.map +0 -1
  213. package/dist/components/Score.d.ts +0 -6
  214. package/dist/components/Score.d.ts.map +0 -1
  215. package/dist/components/Score.js +0 -13
  216. package/dist/components/Score.js.map +0 -1
  217. package/dist/components/Section.d.ts +0 -3
  218. package/dist/components/Section.d.ts.map +0 -1
  219. package/dist/components/Section.js +0 -7
  220. package/dist/components/Section.js.map +0 -1
  221. package/dist/components/SectionContext.d.ts +0 -13
  222. package/dist/components/SectionContext.d.ts.map +0 -1
  223. package/dist/components/SectionContext.js +0 -21
  224. package/dist/components/SectionContext.js.map +0 -1
  225. package/dist/components/SectionInstruction.d.ts +0 -6
  226. package/dist/components/SectionInstruction.d.ts.map +0 -1
  227. package/dist/components/SectionInstruction.js +0 -6
  228. package/dist/components/SectionInstruction.js.map +0 -1
  229. package/dist/components/TableOfContents.d.ts +0 -13
  230. package/dist/components/TableOfContents.d.ts.map +0 -1
  231. package/dist/components/TableOfContents.js +0 -66
  232. package/dist/components/TableOfContents.js.map +0 -1
  233. package/dist/components/TextAnswer.d.ts +0 -6
  234. package/dist/components/TextAnswer.d.ts.map +0 -1
  235. package/dist/components/TextAnswer.js +0 -16
  236. package/dist/components/TextAnswer.js.map +0 -1
  237. package/dist/components/TextAnswerInput.d.ts +0 -37
  238. package/dist/components/TextAnswerInput.d.ts.map +0 -1
  239. package/dist/components/TextAnswerInput.js +0 -145
  240. package/dist/components/TextAnswerInput.js.map +0 -1
  241. package/dist/components/Video.d.ts +0 -6
  242. package/dist/components/Video.d.ts.map +0 -1
  243. package/dist/components/Video.js +0 -15
  244. package/dist/components/Video.js.map +0 -1
  245. package/dist/components/exam/FinishExam.d.ts +0 -5
  246. package/dist/components/exam/FinishExam.d.ts.map +0 -1
  247. package/dist/components/exam/FinishExam.js +0 -17
  248. package/dist/components/exam/FinishExam.js.map +0 -1
  249. package/dist/components/results/AnnotationList.d.ts +0 -5
  250. package/dist/components/results/AnnotationList.d.ts.map +0 -1
  251. package/dist/components/results/AnnotationList.js +0 -40
  252. package/dist/components/results/AnnotationList.js.map +0 -1
  253. package/dist/components/results/ResultsChoiceAnswer.d.ts +0 -6
  254. package/dist/components/results/ResultsChoiceAnswer.d.ts.map +0 -1
  255. package/dist/components/results/ResultsChoiceAnswer.js +0 -60
  256. package/dist/components/results/ResultsChoiceAnswer.js.map +0 -1
  257. package/dist/components/results/ResultsContext.d.ts +0 -20
  258. package/dist/components/results/ResultsContext.d.ts.map +0 -1
  259. package/dist/components/results/ResultsContext.js +0 -68
  260. package/dist/components/results/ResultsContext.js.map +0 -1
  261. package/dist/components/results/ResultsDropdownAnswer.d.ts +0 -6
  262. package/dist/components/results/ResultsDropdownAnswer.d.ts.map +0 -1
  263. package/dist/components/results/ResultsDropdownAnswer.js +0 -41
  264. package/dist/components/results/ResultsDropdownAnswer.js.map +0 -1
  265. package/dist/components/results/ResultsExamQuestion.d.ts +0 -5
  266. package/dist/components/results/ResultsExamQuestion.d.ts.map +0 -1
  267. package/dist/components/results/ResultsExamQuestion.js +0 -23
  268. package/dist/components/results/ResultsExamQuestion.js.map +0 -1
  269. package/dist/components/results/ResultsExamQuestionAutoScore.d.ts +0 -10
  270. package/dist/components/results/ResultsExamQuestionAutoScore.d.ts.map +0 -1
  271. package/dist/components/results/ResultsExamQuestionAutoScore.js +0 -16
  272. package/dist/components/results/ResultsExamQuestionAutoScore.js.map +0 -1
  273. package/dist/components/results/ResultsExamQuestionManualScore.d.ts +0 -11
  274. package/dist/components/results/ResultsExamQuestionManualScore.d.ts.map +0 -1
  275. package/dist/components/results/ResultsExamQuestionManualScore.js +0 -62
  276. package/dist/components/results/ResultsExamQuestionManualScore.js.map +0 -1
  277. package/dist/components/results/ResultsExamQuestionScoresContainer.d.ts +0 -9
  278. package/dist/components/results/ResultsExamQuestionScoresContainer.d.ts.map +0 -1
  279. package/dist/components/results/ResultsExamQuestionScoresContainer.js +0 -8
  280. package/dist/components/results/ResultsExamQuestionScoresContainer.js.map +0 -1
  281. package/dist/components/results/ResultsExamQuestionTitle.d.ts +0 -6
  282. package/dist/components/results/ResultsExamQuestionTitle.d.ts.map +0 -1
  283. package/dist/components/results/ResultsExamQuestionTitle.js +0 -22
  284. package/dist/components/results/ResultsExamQuestionTitle.js.map +0 -1
  285. package/dist/components/results/ResultsExamSection.d.ts +0 -5
  286. package/dist/components/results/ResultsExamSection.d.ts.map +0 -1
  287. package/dist/components/results/ResultsExamSection.js +0 -17
  288. package/dist/components/results/ResultsExamSection.js.map +0 -1
  289. package/dist/components/results/ResultsScoredTextAnswer.d.ts +0 -6
  290. package/dist/components/results/ResultsScoredTextAnswer.d.ts.map +0 -1
  291. package/dist/components/results/ResultsScoredTextAnswer.js +0 -22
  292. package/dist/components/results/ResultsScoredTextAnswer.js.map +0 -1
  293. package/dist/components/results/ResultsSingleLineAnswer.d.ts +0 -12
  294. package/dist/components/results/ResultsSingleLineAnswer.d.ts.map +0 -1
  295. package/dist/components/results/ResultsSingleLineAnswer.js +0 -12
  296. package/dist/components/results/ResultsSingleLineAnswer.js.map +0 -1
  297. package/dist/components/results/ResultsTextAnswer.d.ts +0 -6
  298. package/dist/components/results/ResultsTextAnswer.d.ts.map +0 -1
  299. package/dist/components/results/ResultsTextAnswer.js +0 -51
  300. package/dist/components/results/ResultsTextAnswer.js.map +0 -1
  301. package/dist/components/results/helpers.d.ts +0 -9
  302. package/dist/components/results/helpers.d.ts.map +0 -1
  303. package/dist/components/results/helpers.js +0 -10
  304. package/dist/components/results/helpers.js.map +0 -1
  305. package/dist/components/results/isExamFinishPageHook.d.ts +0 -2
  306. package/dist/components/results/isExamFinishPageHook.d.ts.map +0 -1
  307. package/dist/components/results/isExamFinishPageHook.js.map +0 -1
  308. package/dist/components/types.d.ts +0 -110
  309. package/dist/components/types.d.ts.map +0 -1
  310. package/dist/components/types.js +0 -1
  311. package/dist/components/types.js.map +0 -1
  312. package/dist/components/withContext.d.ts +0 -3
  313. package/dist/components/withContext.d.ts.map +0 -1
  314. package/dist/components/withContext.js +0 -12
  315. package/dist/components/withContext.js.map +0 -1
@@ -8,6 +8,6 @@ exports.examServerApi = {
8
8
  saveScreenshot: () => Promise.resolve('ok'),
9
9
  playAudio: () => Promise.resolve('ok'),
10
10
  playRestrictedAudio: () => Promise.resolve('ok'),
11
- finishExam: () => undefined
11
+ examineExam: () => undefined
12
12
  };
13
13
  //# sourceMappingURL=examServerApi.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"examServerApi.js","sourceRoot":"","sources":["../../__tests__/examServerApi.ts"],"names":[],"mappings":";;;AAEa,QAAA,aAAa,GAAkB;IAC1C,UAAU,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;IACrC,YAAY,EAAE,SAAS,CAAC,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;IACrD,UAAU,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;IACnC,cAAc,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;IAC3C,SAAS,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;IACtC,mBAAmB,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;IAChD,UAAU,EAAE,GAAG,EAAE,CAAC,SAAS;CAC5B,CAAA"}
1
+ {"version":3,"file":"examServerApi.js","sourceRoot":"","sources":["../../__tests__/examServerApi.ts"],"names":[],"mappings":";;;AAEa,QAAA,aAAa,GAAkB;IAC1C,UAAU,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;IACrC,YAAY,EAAE,SAAS,CAAC,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;IACrD,UAAU,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;IACnC,cAAc,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;IAC3C,SAAS,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;IACtC,mBAAmB,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;IAChD,WAAW,EAAE,GAAG,EAAE,CAAC,SAAS;CAC7B,CAAA"}
@@ -48,7 +48,8 @@ describe.each((0, exam_engine_exams_1.listExams)().map(exam => [path_1.default.b
48
48
  gradingStructure,
49
49
  answers: (0, exam_engine_generator_1.generateAnswers)(gradingStructure),
50
50
  scores: mkScores(gradingStructure),
51
- returnToExam: () => { }
51
+ returnToExam: () => { },
52
+ endSession: () => Promise.resolve()
52
53
  };
53
54
  expect((0, react_test_renderer_1.create)(react_1.default.createElement(exam_engine_core_1.Exam, { ...examProps })).toJSON()).toMatchSnapshot('<Exam />');
54
55
  expect((0, react_test_renderer_1.create)(react_1.default.createElement(exam_engine_core_1.Attachments, { ...examProps })).toJSON()).toMatchSnapshot('<Attachments />');
@@ -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,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,QAAQ,CAAC,CAAA;IAEzG,EAAE,CAAC,kBAAkB,EAAE,KAAK,IAAI,EAAE;QAChC,MAAM,MAAM,GAAG,MAAM,aAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;QAC/C,MAAM,OAAO,GAAG,MAAM,IAAA,kCAAU,EAAC,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,IAAA,qDAA6B,EAAC,iBAAiB,C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