From b5a1bcb2c88466bebec1b9cde779ef9d5a269eb6 Mon Sep 17 00:00:00 2001 From: Yury Saukou Date: Tue, 17 Oct 2023 11:56:01 +0400 Subject: [PATCH] fix type naming --- CHANGELOG.md | 2 +- src/components/util/util.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 023019097..d6798acea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## [10.1.0] IN PROGRESS -* Don't display affiliations of users with types `patron` or `dbc`. Refs UIU-2967. +* Don't display affiliations of users with types `patron` or `dcb`. Refs UIU-2967. ## [10.0.0](https://github.com/folio-org/ui-users/tree/v10.0.0) (2023-10-13) [Full Changelog](https://github.com/folio-org/ui-users/compare/v9.0.3...v10.0.0) diff --git a/src/components/util/util.test.js b/src/components/util/util.test.js index a434278f5..cec1dd32b 100644 --- a/src/components/util/util.test.js +++ b/src/components/util/util.test.js @@ -425,11 +425,11 @@ describe('isAffiliationsEnabled', () => { expect(isAffiliationsEnabled({ type: USER_TYPES.PATRON })).toBeFalsy(); }); - it('should return \'false\' if a user type is \'dbc\'', () => { + it('should return \'false\' if a user type is \'dcb\'', () => { expect(isAffiliationsEnabled({ type: USER_TYPES.DCB })).toBeFalsy(); }); - it('should return \'true\' if a user type is other than \'patron\' and \'dbc\'', () => { + it('should return \'true\' if a user type is other than \'patron\' and \'dcb\'', () => { expect(isAffiliationsEnabled({ type: USER_TYPES.SHADOW })).toBeTruthy(); expect(isAffiliationsEnabled({ type: USER_TYPES.STAFF })).toBeTruthy(); expect(isAffiliationsEnabled({ type: USER_TYPES.SYSTEM })).toBeTruthy();