Skip to content

Commit

Permalink
test: add sequence edit form container test
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay committed Aug 2, 2023
1 parent 633f285 commit 3618816
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/components/Forms/SequenceEditFormContainer.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React from 'react'
import { shallow } from 'enzyme'
import SequenceEditFormContainer from './SequenceEditFormContainer'

jest.mock('react-router-dom', () => ({
useParams: () => ({ id: 'id' }),
}))

afterEach(() => {
jest.resetAllMocks()
})

describe('<SequenceEditFormContainer>', () => {
it('renders without errors', () => {
const sequence = {
cronExpression: '',
sequence: [],
name: '',
}

shallow(
<SequenceEditFormContainer
sequence={sequence}
setIsPristine={() => {}}
/>
)
})
})

0 comments on commit 3618816

Please sign in to comment.