Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
JamalAlabdullah committed Jan 20, 2025
1 parent 660230b commit d9cf36b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ describe('ColumnElement', () => {
expect(onEditMock).toHaveBeenCalledTimes(1);
expect(onEditMock).toHaveBeenCalledWith({

Check failure on line 80 in frontend/packages/ux-editor/src/components/Properties/EditSubformTableColumns/ColumnElement/ColumnElement.test.tsx

View workflow job for this annotation

GitHub Actions / Testing

ColumnElement › should call onEdit with updated header content when click on save button

expect(jest.fn()).toHaveBeenCalledWith(...expected) - Expected + Received Object { "cellContent": Object { - "default": "Default", - "query": "Query", + "query": "some-path", }, "headerContent": "subform_table_column_title_test-layout-set-3", }, Number of calls: 1 at Object.toHaveBeenCalledWith (packages/ux-editor/src/components/Properties/EditSubformTableColumns/ColumnElement/ColumnElement.test.tsx:80:24)
...mockTableColumn,
headerContent: expect.stringContaining('subform_table_column_title_'),
cellContent: { query: subformLayoutMock.component1.dataModelBindings.simpleBinding },
headerContent: 'subform_table_column_title_test-layout-set-3',
cellContent: {
query: cellContentQueryMock,
default: cellContentDefaultMock,
},
});
});

Expand Down

0 comments on commit d9cf36b

Please sign in to comment.