Skip to content

Commit

Permalink
test: increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Nov 22, 2023
1 parent 0c5d2d1 commit 081a2d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/manage/Blocks/Group/View.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,19 @@ describe('View', () => {
metadata: { meta: 'data' },
properties: { prop: 'erty' },
variation: {},
location: {
pathname: '/my-page',
search: '',
hash: '',
key: 'q5b96h',
},
};
render(<View {...props} />);
expect(RenderBlocks).toHaveBeenCalledWith(
expect.objectContaining({
metadata: props.metadata,
content: props.data.data,
location: props.location,
}),
{},
);
Expand Down

0 comments on commit 081a2d0

Please sign in to comment.