From 30ae67e92f0d2c482666df0b7bec10c46b526a05 Mon Sep 17 00:00:00 2001 From: ismay Date: Wed, 2 Aug 2023 17:38:54 +0200 Subject: [PATCH] test: add sequence edit form container test --- .../Forms/SequenceEditFormContainer.test.js | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/components/Forms/SequenceEditFormContainer.test.js diff --git a/src/components/Forms/SequenceEditFormContainer.test.js b/src/components/Forms/SequenceEditFormContainer.test.js new file mode 100644 index 000000000..f1e22d39c --- /dev/null +++ b/src/components/Forms/SequenceEditFormContainer.test.js @@ -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('', () => { + it('renders without errors', () => { + const sequence = { + cronExpression: '', + sequence: [], + name: '', + } + + shallow( + {}} + /> + ) + }) +})