Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytro-Melnyshyn committed Oct 23, 2024
1 parent 24b42f0 commit aeada80
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/QuickMarcEditor/QuickMarcEditWrapper.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ describe('Given QuickMarcEditWrapper', () => {
await act(async () => { fireEvent.click(getByText('ui-quick-marc.record.save.continue')); });

const fieldIds = mockRecords[MARC_TYPES.BIB].slice(1).map(field => field.id);

expect(mockRefreshPageData).toHaveBeenCalledWith(fieldIds);
});
});
Expand Down
7 changes: 6 additions & 1 deletion src/QuickMarcEditor/QuickMarcEditorContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,12 @@ const QuickMarcEditorContainer = ({
if (action === QUICK_MARC_ACTIONS.CREATE) {
dehydratedMarcRecord = createRecordDefaults[marcType](instanceResponse, fixedFieldSpecResponse);
} else {
dehydratedMarcRecord = dehydrateMarcRecordResponse(marcRecordResponse, marcType, fixedFieldSpecResponse, fieldIds);
dehydratedMarcRecord = dehydrateMarcRecordResponse(
marcRecordResponse,
marcType,
fixedFieldSpecResponse,
fieldIds,
);
}

const formattedMarcRecord = formatMarcRecordByQuickMarcAction(dehydratedMarcRecord, action, marcType);
Expand Down
7 changes: 6 additions & 1 deletion src/QuickMarcEditor/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,12 @@ describe('QuickMarcEditor utils', () => {

const fieldIds = ['id-1', 'id-2'];

const dehydratedMarcRecord = utils.dehydrateMarcRecordResponse(marcRecord, MARC_TYPES.BIB, fixedFieldSpecBib, fieldIds);
const dehydratedMarcRecord = utils.dehydrateMarcRecordResponse(
marcRecord,
MARC_TYPES.BIB,
fixedFieldSpecBib,
fieldIds,
);
const field001 = dehydratedMarcRecord.records[1];
const field006 = dehydratedMarcRecord.records[2];
const field007 = dehydratedMarcRecord.records[3];
Expand Down

0 comments on commit aeada80

Please sign in to comment.