Skip to content

Commit aef44f6

Browse files
committed
fix: fixed tests [PIE-439]
1 parent 892a3cc commit aef44f6

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

packages/multiple-choice/configure/src/__tests__/root.test.jsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ describe('Main', () => {
127127
instance.onRemoveChoice(0);
128128

129129
expect(onModelChanged).toBeCalledWith({
130-
...initialModel,
131130
choices: initialModel.choices.slice(1),
132131
});
133132
});
@@ -165,7 +164,6 @@ describe('Main', () => {
165164
instance.onAddChoice();
166165

167166
expect(onModelChanged).toBeCalledWith({
168-
...initialModel,
169167
choices: [
170168
...initialModel.choices,
171169
{
@@ -203,7 +201,6 @@ describe('Main', () => {
203201
newChoices[1].correct = true;
204202

205203
expect(onModelChanged).toBeCalledWith({
206-
...initialModel,
207204
choices: newChoices,
208205
});
209206
});
@@ -227,7 +224,6 @@ describe('Main', () => {
227224
instance.onChoiceChanged(1, choice);
228225

229226
expect(onModelChanged).toBeCalledWith({
230-
...newModel,
231227
choices: [
232228
{
233229
correct: false,
@@ -259,7 +255,6 @@ describe('Main', () => {
259255
instance.onPromptChanged('New Prompt');
260256

261257
expect(onModelChanged).toBeCalledWith({
262-
...initialModel,
263258
prompt: 'New Prompt',
264259
});
265260
});
@@ -271,7 +266,6 @@ describe('Main', () => {
271266
instance.onTeacherInstructionsChanged('New Teacher Instructions');
272267

273268
expect(onModelChanged).toBeCalledWith({
274-
...initialModel,
275269
teacherInstructions: 'New Teacher Instructions',
276270
});
277271
});
@@ -296,8 +290,6 @@ describe('Main', () => {
296290

297291
expect(onModelChanged).toBeCalledWith(
298292
{
299-
...initialModel,
300-
choiceMode: 'radio',
301293
choices: expectedChoices,
302294
},
303295
true,

0 commit comments

Comments
 (0)