Skip to content

Commit

Permalink
test: Increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Sep 24, 2023
1 parent 5296adf commit 5269c75
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/actions/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { getWorkflowProgress } from './index';

describe('getWorkflowProgress', () => {
const item = 'https://demo.plone.org';

it('returns the correct action object', () => {
const action = getWorkflowProgress(item);
expect(action).toEqual({
type: 'WORKFLOW_PROGRESS',
request: {
op: 'get',
path: `${item}/@workflow.progress`,
headers: {
Accept: 'application/json',
},
},
});
});
});

0 comments on commit 5269c75

Please sign in to comment.