Skip to content

Commit

Permalink
fix: remove unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay committed Jul 27, 2023
1 parent 8b218f3 commit 6b50b13
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/components/Forms/SequenceEditForm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ describe('<SequenceEditForm>', () => {
submitError: [message],
hasSubmitErrors: true,
values: {},
setIsPristine: () => {},
}

const wrapper = mount(
Expand All @@ -40,23 +39,6 @@ describe('<SequenceEditForm>', () => {
expect(actual.text()).toEqual(expect.stringContaining(message))
})

it('calls setIsPristine on form changes', () => {
const spy = jest.fn()
const wrapper = mount(
<Form
onSubmit={() => {}}
setIsPristine={spy}
component={SequenceEditForm}
/>
)

wrapper
.find({ id: 'name' })
.simulate('change', { target: { value: 'A change' } })

expect(spy).toHaveBeenCalledWith(false)
})

it('shows a spinner when submitting', () => {
const props = {
handleSubmit: () => {},
Expand All @@ -65,7 +47,6 @@ describe('<SequenceEditForm>', () => {
submitError: [],
hasSubmitErrors: false,
values: {},
setIsPristine: () => {},
}

const wrapper = mount(
Expand Down Expand Up @@ -96,7 +77,6 @@ describe('<SequenceEditForm>', () => {
submitError: [],
hasSubmitErrors: false,
values: {},
setIsPristine: () => {},
}

const wrapper = mount(
Expand All @@ -122,7 +102,6 @@ describe('<SequenceEditForm>', () => {
submitError: [],
hasSubmitErrors: false,
values: {},
setIsPristine: () => {},
}

const wrapper = mount(
Expand Down

0 comments on commit 6b50b13

Please sign in to comment.