Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
iocanel committed Jan 16, 2023
1 parent e411a62 commit 54cb650
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/reducers/org.unit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,12 @@ describe('org reducer', () => {
expect(headers.size).toEqual(4);
expectOrigFirstHeader(headers);
expectOrigLastHeader(headers);
const action = types.insertCapture(template.id, content, shouldPrepend);
const action = types.insertCapture(
template.id,
content,
shouldPrepend,
shouldCaptureAsNewHeader
);
store.dispatch(action);
const newHeaders = store.getState().org.present.getIn(['files', path, 'headers']);
expect(newHeaders.size).toEqual(5);
Expand Down

0 comments on commit 54cb650

Please sign in to comment.