From ab3ef5e52788cabc9240a0479d823571dad54fbf Mon Sep 17 00:00:00 2001 From: Artem Blazhko Date: Fri, 6 Dec 2024 14:13:39 +0200 Subject: [PATCH] Increase code coverage for src/ChooseRequestTypeDialog.js (#1243) --- CHANGELOG.md | 1 + src/ChooseRequestTypeDialog.js | 1 + src/ChooseRequestTypeDialog.test.js | 36 ++++++++++++++++++++ test/jest/__mock__/stripesComponents.mock.js | 1 + 4 files changed, 39 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b14b7a8..5a24e9fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## [11.1.0] IN PROGRESS * Migrate from `mod-circulation` to `mod-circulation-bff` for `Print pick slips` and `Print search slips`. Refs UIREQ-1154. +* Increase code coverage for src/ChooseRequestTypeDialog.js by Jest/RTL tests. Refs UIREQ-1044. ## [11.0.1] (https://github.com/folio-org/ui-requests/tree/v11.0.1) (2024-12-02) [Full Changelog](https://github.com/folio-org/ui-requests/compare/v11.0.0...v11.0.1) diff --git a/src/ChooseRequestTypeDialog.js b/src/ChooseRequestTypeDialog.js index 02ddabd2..c95ccb65 100644 --- a/src/ChooseRequestTypeDialog.js +++ b/src/ChooseRequestTypeDialog.js @@ -81,6 +81,7 @@ class ChooseRequestTypeDialog extends React.Component { {isLoading ? : {props.children} + {props.error} )), TextArea: jest.fn(({ 'data-testid': testId,