Skip to content

Commit 35bb96b

Browse files
committed
update test
1 parent 65f0d3a commit 35bb96b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/compass-data-modeling/src/utils/schema-traversal.spec.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,9 @@ describe('removeField', function () {
538538
const result = updateSchema({
539539
fieldPath: ['name'],
540540
jsonSchema: schema,
541-
update: 'removeField',
541+
updateParameters: {
542+
update: 'removeField',
543+
},
542544
});
543545
expect(result.required).to.deep.equal(['age']);
544546
});
@@ -850,8 +852,10 @@ describe('renameField', function () {
850852
const result = updateSchema({
851853
fieldPath: ['name'],
852854
jsonSchema: schema,
853-
update: 'renameField',
854-
newFieldName: 'newName',
855+
updateParameters: {
856+
update: 'renameField',
857+
newFieldName: 'newName',
858+
},
855859
});
856860
expect(result.required).to.deep.equal(['newName', 'age']);
857861
});

0 commit comments

Comments
 (0)