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 87849e6 commit 30ae67e
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 30ae67e

Please sign in to comment.