From 54cb650da8d2a5af1a868c405ae64219a1ca8725 Mon Sep 17 00:00:00 2001 From: Ioannis Canellos Date: Mon, 16 Jan 2023 11:01:40 +0200 Subject: [PATCH] fix: unit test --- src/reducers/org.unit.test.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/reducers/org.unit.test.js b/src/reducers/org.unit.test.js index 50994804..398052e9 100644 --- a/src/reducers/org.unit.test.js +++ b/src/reducers/org.unit.test.js @@ -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);