Skip to content

Commit

Permalink
fix: added onsubmit to test case
Browse files Browse the repository at this point in the history
  • Loading branch information
hashtagnulla committed Jun 6, 2024
1 parent 7804602 commit f738c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sn-controls-react/test/new-view.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe('New view component', () => {
it('should handle change', () => {
const onSubmit = jest.fn()
const wrapper = shallow(
<NewView repository={testRepository} showTitle={true} contentTypeName="GenericContent" />,
<NewView repository={testRepository} showTitle={true} onSubmit={onSubmit} contentTypeName="GenericContent" />,
).dive()
const onChange = wrapper.find(CheckboxGroup).first().prop('fieldOnChange')
onChange?.('VersioningMode', VersioningMode.Option1)
Expand Down

0 comments on commit f738c9c

Please sign in to comment.