@digabi/exam-engine-core 22.1.2-alpha.0 → 22.1.3-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. package/dist/__tests__/EditableGradingInstruction.test.js +26 -26
  2. package/dist/__tests__/EditableGradingInstruction.test.js.map +1 -1
  3. package/dist/__tests__/editor/{NBSP.test.js → nbsp.test.js} +1 -1
  4. package/dist/__tests__/editor/{NBSP.test.js.map → nbsp.test.js.map} +1 -1
  5. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  6. package/dist/components/Localization.d.ts +5 -0
  7. package/dist/components/Localization.d.ts.map +1 -0
  8. package/dist/components/Localization.js +9 -0
  9. package/dist/components/Localization.js.map +1 -0
  10. package/dist/components/context/AttachmentContext.d.ts.map +1 -1
  11. package/dist/components/context/ExamContext.d.ts.map +1 -1
  12. package/dist/components/context/QuestionContext.d.ts.map +1 -1
  13. package/dist/components/context/ResultsContext.d.ts.map +1 -1
  14. package/dist/components/context/SectionContext.d.ts.map +1 -1
  15. package/dist/components/grading-instructions/EditableGradingInstruction.d.ts.map +1 -1
  16. package/dist/components/grading-instructions/EditableGradingInstruction.js +22 -15
  17. package/dist/components/grading-instructions/EditableGradingInstruction.js.map +1 -1
  18. package/dist/components/grading-instructions/ExamGradingInstruction.d.ts.map +1 -1
  19. package/dist/components/grading-instructions/ExamGradingInstruction.js +2 -7
  20. package/dist/components/grading-instructions/ExamGradingInstruction.js.map +1 -1
  21. package/dist/components/grading-instructions/GradingInstruction.d.ts +7 -0
  22. package/dist/components/grading-instructions/GradingInstruction.d.ts.map +1 -0
  23. package/dist/components/grading-instructions/GradingInstruction.js +9 -0
  24. package/dist/components/grading-instructions/GradingInstruction.js.map +1 -0
  25. package/dist/components/grading-instructions/GradingInstructions.d.ts +1 -1
  26. package/dist/components/grading-instructions/editor/Localization.d.ts +3 -0
  27. package/dist/components/grading-instructions/editor/Localization.d.ts.map +1 -0
  28. package/dist/components/grading-instructions/editor/Localization.js +36 -0
  29. package/dist/components/grading-instructions/editor/Localization.js.map +1 -0
  30. package/dist/components/grading-instructions/editor/Table.js +1 -1
  31. package/dist/components/grading-instructions/editor/Table.js.map +1 -1
  32. package/dist/components/grading-instructions/editor/localizatio.d.ts +3 -0
  33. package/dist/components/grading-instructions/editor/localizatio.d.ts.map +1 -0
  34. package/dist/components/grading-instructions/editor/localizatio.js +36 -0
  35. package/dist/components/grading-instructions/editor/localizatio.js.map +1 -0
  36. package/dist/components/grading-instructions/editor/localizationSpan.d.ts +3 -0
  37. package/dist/components/grading-instructions/editor/localizationSpan.d.ts.map +1 -0
  38. package/dist/components/grading-instructions/editor/localizationSpan.js +36 -0
  39. package/dist/components/grading-instructions/editor/localizationSpan.js.map +1 -0
  40. package/dist/components/grading-instructions/editor/spanWithNowrap.d.ts +3 -0
  41. package/dist/components/grading-instructions/editor/spanWithNowrap.d.ts.map +1 -0
  42. package/dist/components/grading-instructions/editor/{spanWithClass.js → spanWithNowrap.js} +3 -3
  43. package/dist/components/grading-instructions/editor/spanWithNowrap.js.map +1 -0
  44. package/dist/components/grading-instructions/editor/spanWithPath.d.ts +3 -0
  45. package/dist/components/grading-instructions/editor/spanWithPath.d.ts.map +1 -0
  46. package/dist/components/grading-instructions/editor/spanWithPath.js +24 -0
  47. package/dist/components/grading-instructions/editor/spanWithPath.js.map +1 -0
  48. package/dist/main-bundle.js +1 -1
  49. package/dist/main-bundle.js.LICENSE.txt +1 -1
  50. package/dist/main.css +1 -1
  51. package/package.json +2 -2
  52. package/dist/__tests__/EditableGradingInsatruction.test.d.ts +0 -1
  53. package/dist/__tests__/EditableGradingInsatruction.test.d.ts.map +0 -1
  54. package/dist/__tests__/EditableGradingInsatruction.test.js +0 -2
  55. package/dist/__tests__/EditableGradingInsatruction.test.js.map +0 -1
  56. package/dist/__tests__/editor/no-wrap.test.d.ts +0 -2
  57. package/dist/__tests__/editor/no-wrap.test.d.ts.map +0 -1
  58. package/dist/__tests__/editor/no-wrap.test.js +0 -43
  59. package/dist/__tests__/editor/no-wrap.test.js.map +0 -1
  60. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.d.ts +0 -1
  61. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.d.ts.map +0 -1
  62. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.js +0 -2
  63. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.js.map +0 -1
  64. package/dist/__tests__/utils/renderEditableGradingInstructions.d.ts +0 -1
  65. package/dist/__tests__/utils/renderEditableGradingInstructions.d.ts.map +0 -1
  66. package/dist/__tests__/utils/renderEditableGradingInstructions.js +0 -2
  67. package/dist/__tests__/utils/renderEditableGradingInstructions.js.map +0 -1
  68. package/dist/components/LexicalEditor.d.ts +0 -3
  69. package/dist/components/LexicalEditor.d.ts.map +0 -1
  70. package/dist/components/LexicalEditor.js +0 -44
  71. package/dist/components/LexicalEditor.js.map +0 -1
  72. package/dist/components/RTE.d.ts +0 -3
  73. package/dist/components/RTE.d.ts.map +0 -1
  74. package/dist/components/RTE.js +0 -23
  75. package/dist/components/RTE.js.map +0 -1
  76. package/dist/components/TablePlugin.d.ts +0 -1
  77. package/dist/components/TablePlugin.d.ts.map +0 -1
  78. package/dist/components/TablePlugin.js +0 -2
  79. package/dist/components/TablePlugin.js.map +0 -1
  80. package/dist/components/ToolBarPlugin.d.ts +0 -10
  81. package/dist/components/ToolBarPlugin.d.ts.map +0 -1
  82. package/dist/components/ToolBarPlugin.js +0 -111
  83. package/dist/components/ToolBarPlugin.js.map +0 -1
  84. package/dist/components/context/AnnotationContext.d.ts +0 -8
  85. package/dist/components/context/AnnotationContext.d.ts.map +0 -1
  86. package/dist/components/context/AnnotationContext.js +0 -3
  87. package/dist/components/context/AnnotationContext.js.map +0 -1
  88. package/dist/components/exam/ExamineExam.d.ts +0 -5
  89. package/dist/components/exam/ExamineExam.d.ts.map +0 -1
  90. package/dist/components/exam/ExamineExam.js +0 -20
  91. package/dist/components/exam/ExamineExam.js.map +0 -1
  92. package/dist/components/exam/FinishExam.d.ts +0 -5
  93. package/dist/components/exam/FinishExam.d.ts.map +0 -1
  94. package/dist/components/exam/FinishExam.js +0 -17
  95. package/dist/components/exam/FinishExam.js.map +0 -1
  96. package/dist/components/grading/reactAnnotation.d.ts +0 -4
  97. package/dist/components/grading/reactAnnotation.d.ts.map +0 -1
  98. package/dist/components/grading/reactAnnotation.js +0 -54
  99. package/dist/components/grading/reactAnnotation.js.map +0 -1
  100. package/dist/components/grading-instructions/SlateTableEditor.d.ts +0 -22
  101. package/dist/components/grading-instructions/SlateTableEditor.d.ts.map +0 -1
  102. package/dist/components/grading-instructions/SlateTableEditor.js +0 -44
  103. package/dist/components/grading-instructions/SlateTableEditor.js.map +0 -1
  104. package/dist/components/grading-instructions/SlateUtils.d.ts +0 -5
  105. package/dist/components/grading-instructions/SlateUtils.d.ts.map +0 -1
  106. package/dist/components/grading-instructions/SlateUtils.js +0 -28
  107. package/dist/components/grading-instructions/SlateUtils.js.map +0 -1
  108. package/dist/components/grading-instructions/editor/MathPopup.d.ts +0 -10
  109. package/dist/components/grading-instructions/editor/MathPopup.d.ts.map +0 -1
  110. package/dist/components/grading-instructions/editor/MathPopup.js +0 -94
  111. package/dist/components/grading-instructions/editor/MathPopup.js.map +0 -1
  112. package/dist/components/grading-instructions/editor/math-svg.d.ts +0 -2
  113. package/dist/components/grading-instructions/editor/math-svg.d.ts.map +0 -1
  114. package/dist/components/grading-instructions/editor/math-svg.js +0 -22
  115. package/dist/components/grading-instructions/editor/math-svg.js.map +0 -1
  116. package/dist/components/grading-instructions/editor/math.d.ts +0 -4
  117. package/dist/components/grading-instructions/editor/math.d.ts.map +0 -1
  118. package/dist/components/grading-instructions/editor/math.js +0 -55
  119. package/dist/components/grading-instructions/editor/math.js.map +0 -1
  120. package/dist/components/grading-instructions/editor/noWrap.d.ts +0 -3
  121. package/dist/components/grading-instructions/editor/noWrap.d.ts.map +0 -1
  122. package/dist/components/grading-instructions/editor/noWrap.js +0 -13
  123. package/dist/components/grading-instructions/editor/noWrap.js.map +0 -1
  124. package/dist/components/grading-instructions/editor/spanWithClass.d.ts +0 -3
  125. package/dist/components/grading-instructions/editor/spanWithClass.d.ts.map +0 -1
  126. package/dist/components/grading-instructions/editor/spanWithClass.js.map +0 -1
  127. package/dist/components/grading-instructions/prosemirror.d.ts +0 -8
  128. package/dist/components/grading-instructions/prosemirror.d.ts.map +0 -1
  129. package/dist/components/grading-instructions/prosemirror.js +0 -108
  130. package/dist/components/grading-instructions/prosemirror.js.map +0 -1
  131. package/dist/components/results/isExamFinishPageHook.d.ts +0 -2
  132. package/dist/components/results/isExamFinishPageHook.d.ts.map +0 -1
  133. package/dist/components/results/isExamFinishPageHook.js +0 -7
  134. package/dist/components/results/isExamFinishPageHook.js.map +0 -1
  135. package/dist/components/shared/CreateAnnotationPopup.d.ts +0 -6
  136. package/dist/components/shared/CreateAnnotationPopup.d.ts.map +0 -1
  137. package/dist/components/shared/CreateAnnotationPopup.js +0 -11
  138. package/dist/components/shared/CreateAnnotationPopup.js.map +0 -1
  139. package/dist/components/shared/PopupUtils.d.ts +0 -4
  140. package/dist/components/shared/PopupUtils.d.ts.map +0 -1
  141. package/dist/components/shared/PopupUtils.js +0 -26
  142. package/dist/components/shared/PopupUtils.js.map +0 -1
  143. package/dist/store/listenerMiddleware.d.ts +0 -89
  144. package/dist/store/listenerMiddleware.d.ts.map +0 -1
  145. package/dist/store/listenerMiddleware.js +0 -6
  146. package/dist/store/listenerMiddleware.js.map +0 -1
  147. /package/dist/__tests__/editor/{NBSP.test.d.ts → nbsp.test.d.ts} +0 -0
  148. /package/dist/__tests__/editor/{NBSP.test.d.ts.map → nbsp.test.d.ts.map} +0 -0
@@ -21,16 +21,16 @@ describe('EditableGradingInstruction', () => {
21
21
  });
22
22
  describe('table', () => {
23
23
  it('Table is rendered as expected', () => {
24
- const inputData = '<table class="e-table"><tr><td>foo</td></tr></table>';
25
- const expectedOutput = '<table class="e-table"><tbody><tr><td><p>foo</p></td></tr></tbody></table>';
24
+ const inputData = '<table class="e-table"><tbody><tr><td>foo</td></tr></tbody></table>';
25
+ const expectedOutput = '<table class="e-table"><tbody><tr><td>foo</td></tr></tbody></table>';
26
26
  const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData);
27
27
  const table = result.container.querySelector('.ProseMirror');
28
28
  expect(table.innerHTML).toBe(expectedOutput);
29
29
  });
30
30
  it('Change in table is returned as expected', async () => {
31
31
  cleanup = mockCreateRange();
32
- const inputData = '<table class="e-table"><tr><td>foo</td></tr></table>';
33
- const expectedOutput = '<table class="e-table"><tbody><tr><td><p>bar</p></td></tr></tbody></table>';
32
+ const inputData = '<table class="e-table"><tbody><tr><td>foo</td></tr></tbody></table>';
33
+ const expectedOutput = '<table class="e-table"><tbody><tr><td>bar</td></tr></tbody></table>';
34
34
  const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
35
35
  await act(async () => {
36
36
  insertText(await result.findByText('foo'), 'bar');
@@ -40,7 +40,7 @@ describe('EditableGradingInstruction', () => {
40
40
  });
41
41
  it('Insert table adds expected table', async () => {
42
42
  const inputData = '';
43
- const expectedOutput = '<table class="e-table e-width-half"><tbody><tr><td><p></p></td><td><p></p></td></tr><tr><td><p></p></td><td><p></p></td></tr></tbody></table>';
43
+ const expectedOutput = '<table class="e-table e-width-half"><tbody><tr><td></td><td></td></tr><tr><td></td><td></td></tr></tbody></table>';
44
44
  const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
45
45
  await act(async () => {
46
46
  await user_event_1.default.click(await result.findByText('Lisää taulukko'));
@@ -48,78 +48,78 @@ describe('EditableGradingInstruction', () => {
48
48
  expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
49
49
  });
50
50
  it('Remove table removes table', async () => {
51
- const inputData = '<table><tr><td>foo</td></tr></table>';
51
+ const inputData = '<table><tbody><tr><td>foo</td></tr></tbody></table>';
52
52
  const expectedOutput = '<p></p>';
53
53
  const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
54
54
  await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Poista taulukko');
55
55
  expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
56
56
  });
57
57
  it('Insert column adds column', async () => {
58
- const inputData = '<table><tr><td>foo</td></tr></table>';
59
- const expectedOutput = '<table><tbody><tr><td><p>foo</p></td><td><p></p></td></tr></tbody></table>';
58
+ const inputData = '<table><tbody><tr><td>foo</td></tr></tbody></table>';
59
+ const expectedOutput = '<table><tbody><tr><td>foo</td><td></td></tr></tbody></table>';
60
60
  const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
61
61
  await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Lisää sarake');
62
62
  expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
63
63
  });
64
64
  it('Remove column removes column', async () => {
65
- const inputData = '<table><tr><td>foo</td><td>bar</td></tr></table>';
66
- const expectedOutput = '<table><tbody><tr><td><p>bar</p></td></tr></tbody></table>';
65
+ const inputData = '<table><tbody><tr><td>foo</td><td>bar</td></tr></tbody></table>';
66
+ const expectedOutput = '<table><tbody><tr><td>bar</td></tr></tbody></table>';
67
67
  const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
68
68
  await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Poista sarake');
69
69
  expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
70
70
  });
71
71
  it('Insert row adds row', async () => {
72
- const inputData = '<table><tr><td>foo</td></tr></table>';
73
- const expectedOutput = '<table><tbody><tr><td><p>foo</p></td></tr><tr><td><p></p></td></tr></tbody></table>';
72
+ const inputData = '<table><tbody><tr><td>foo</td></tr></tbody></table>';
73
+ const expectedOutput = '<table><tbody><tr><td>foo</td></tr><tr><td></td></tr></tbody></table>';
74
74
  const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
75
75
  await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Lisää rivi');
76
76
  expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
77
77
  });
78
78
  it('Remove row removes row', async () => {
79
- const inputData = '<table><tr><td>foo</td></tr><tr><td>bar</td></tr></table>';
80
- const expectedOutput = '<table><tbody><tr><td><p>bar</p></td></tr></tbody></table>';
79
+ const inputData = '<table><tbody><tr><td>foo</td></tr><tr><td>bar</td></tr></tbody></table>';
80
+ const expectedOutput = '<table><tbody><tr><td>bar</td></tr></tbody></table>';
81
81
  const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
82
82
  await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Poista rivi');
83
83
  expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
84
84
  });
85
85
  it('Full width changes full width class to table', async () => {
86
- const inputData = '<table class="e-width-half"><tr><td>foo</td></tr></table>';
87
- const expectedOutput = '<table class="e-width-full"><tbody><tr><td><p>foo</p></td></tr></tbody></table>';
86
+ const inputData = '<table class="e-width-half"><tbody><tr><td>foo</td></tr></tbody></table>';
87
+ const expectedOutput = '<table class="e-width-full"><tbody><tr><td>foo</td></tr></tbody></table>';
88
88
  const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
89
89
  await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Täysi leveys');
90
90
  expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
91
91
  });
92
92
  it('Half width changes half width class to table', async () => {
93
- const inputData = '<table class="e-width-full"><tr><td>foo</td></tr></table>';
94
- const expectedOutput = '<table class="e-width-half"><tbody><tr><td><p>foo</p></td></tr></tbody></table>';
93
+ const inputData = '<table class="e-width-full"><tbody><tr><td>foo</td></tr></tbody></table>';
94
+ const expectedOutput = '<table class="e-width-half"><tbody><tr><td>foo</td></tr></tbody></table>';
95
95
  const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
96
96
  await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Puolikas leveys');
97
97
  expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
98
98
  });
99
99
  it('Remove borders adds e-table--borderless class to table', async () => {
100
- const inputData = '<table><tr><td>foo</td></tr></table>';
101
- const expectedOutput = '<table class="e-table--borderless"><tbody><tr><td><p>foo</p></td></tr></tbody></table>';
100
+ const inputData = '<table><tbody><tr><td>foo</td></tr></tbody></table>';
101
+ const expectedOutput = '<table class="e-table--borderless"><tbody><tr><td>foo</td></tr></tbody></table>';
102
102
  const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
103
103
  await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Poista reunat');
104
104
  expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
105
105
  });
106
106
  it('Add borders removes e-table--borderless class from table', async () => {
107
- const inputData = '<table class="e-table--borderless"><tr><td>foo</td></tr></table>';
108
- const expectedOutput = '<table><tbody><tr><td><p>foo</p></td></tr></tbody></table>';
107
+ const inputData = '<table class="e-table--borderless"><tbody><tr><td>foo</td></tr></tbody></table>';
108
+ const expectedOutput = '<table><tbody><tr><td>foo</td></tr></tbody></table>';
109
109
  const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
110
110
  await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Lisää reunat');
111
111
  expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
112
112
  });
113
113
  it('Remove zebra removes class from table', async () => {
114
- const inputData = '<table class="e-table--zebra"><tr><td>foo</td></tr></table>';
115
- const expectedOutput = '<table><tbody><tr><td><p>foo</p></td></tr></tbody></table>';
114
+ const inputData = '<table class="e-table--zebra"><tbody><tr><td>foo</td></tr></tbody></table>';
115
+ const expectedOutput = '<table><tbody><tr><td>foo</td></tr></tbody></table>';
116
116
  const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
117
117
  await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Poista kuviointi');
118
118
  expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
119
119
  });
120
120
  it('Add zebra adds e-table--zebra class to table', async () => {
121
- const inputData = '<table><tr><td>foo</td></tr></table>';
122
- const expectedOutput = '<table class="e-table--zebra"><tbody><tr><td><p>foo</p></td></tr></tbody></table>';
121
+ const inputData = '<table><tbody><tr><td>foo</td></tr></tbody></table>';
122
+ const expectedOutput = '<table class="e-table--zebra"><tbody><tr><td>foo</td></tr></tbody></table>';
123
123
  const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
124
124
  await clickTableMenuButtonWithFocusOnCell(result, 'foo', 'Lisää kuviointi');
125
125
  expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
@@ -1 +1 @@
1
- {"version":3,"file":"EditableGradingInstruction.test.js","sourceRoot":"","sources":["../../__tests__/EditableGradingInstruction.test.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAgF;AAChF,6EAAmD;AACnD,+FAAmF;AAEnF,MAAM,GAAG,GAAG,WAAuD,CAAA;AAEnE,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IAC1C,IAAI,OAA4B,CAAA;IAChC,IAAI,mBAA8B,CAAA;IAElC,UAAU,CAAC,GAAG,EAAE;QACd,mBAAmB,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IACjC,CAAC,CAAC,CAAA;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,EAAE,CAAA;QACX,CAAC;QACD,OAAO,GAAG,IAAI,CAAA;IAChB,CAAC,CAAC,CAAA;IAEF,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;QACrB,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;YACvC,MAAM,SAAS,GAAG,sDAAsD,CAAA;YACxE,MAAM,cAAc,GAAG,4EAA4E,CAAA;Y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IAAI,EAAE;KAC7C,CAAC,CAAA;AACJ,CAAC;AAED,SAAS,eAAe;IACtB,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAA;IAC9D,6DAA6D;IAC7D,mBAAmB;IACnB,MAAM,CAAC,KAAK,GAAG,SAAS,KAAK,KAAI,CAAC,CAAA;IAElC,MAAM,wBAAwB,GAAG,CAAC,IAAY,EAAE,EAAE;QAChD,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;QACzC,GAAG,CAAC,SAAS,GAAG,IAAI,CAAA;QACpB,OAAO,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAA;IACxB,CAAC,CAAA;IACD,6DAA6D;IAC7D,mBAAmB;IACnB,KAAK,CAAC,SAAS,CAAC,wBAAwB,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAA;IAE3F,6DAA6D;IAC7D,mBAAmB;IACnB,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,GAAG,SAAS,WAAW;QACvD,OAAO;YACL,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;YAChB,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC;YAClB,qBAAqB,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;YAC3C,cAAc,EAAE,GAAG,EAAE,CAAC,EAAE;YACxB,wBAAwB;SACzB,CAAA;IACH,CAAC,CAAA;IACD,OAAO,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,GAAG,mBAAmB,CAAC,CAAA;AACzE,CAAC"}
1
+ {"version":3,"file":"EditableGradingInstruction.test.js","sourceRoot":"","sources":["../../__tests__/EditableGradingInstruction.test.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAgF;AAChF,6EAAmD;AACnD,+FAAmF;AAEnF,MAAM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AS,WAAW;QACvD,OAAO;YACL,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;YAChB,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC;YAClB,qBAAqB,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;YAC3C,cAAc,EAAE,GAAG,EAAE,CAAC,EAAE;YACxB,wBAAwB;SACzB,CAAA;IACH,CAAC,CAAA;IACD,OAAO,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,GAAG,mBAAmB,CAAC,CAAA;AACzE,CAAC"}
@@ -47,7 +47,7 @@ describe('Editor - NBSP', () => {
47
47
  await act(async () => {
48
48
  await user_event_1.default.click(await result.findByText('NBSP'));
49
49
  });
50
- expect(onContentChangeMock).toHaveBeenCalledTimes(2); // focus causes another call
50
+ expect(onContentChangeMock).toHaveBeenCalledTimes(1);
51
51
  expect(onContentChangeMock).toHaveBeenLastCalledWith(expectedOutput, '');
52
52
  });
53
53
  });
@@ -1 +1 @@
1
- {"version":3,"file":"nbsp.test.js","sourceRoot":"","sources":["../../../__tests__/editor/nbsp.test.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAkE;AAClE,sDAAsD;AACtD,gGAAoF;AACpF,6EAAmD;AAEnD,MAAM,GAAG,GAAG,WAAuD,CAAA;AAEnE,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,IAAI,OAA4B,CAAA;IAChC,IAAI,mBAA8B,CAAA;IAElC,UAAU,CAAC,GAAG,EAAE;QACd,mBAAmB,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IACjC,CAAC,CAAC,CAAA;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,EAAE,CAAA;QACX,CAAC;QACD,OAAO,GAAG,IAAI,CAAA;IAChB,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,8BAA8B,EAAE,GAAG,EA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