Skip to content

Commit

Permalink
fix type naming
Browse files Browse the repository at this point in the history
  • Loading branch information
usavkov-epam committed Oct 17, 2023
1 parent 0321cae commit b5a1bcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/components/util/util.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b5a1bcb

Please sign in to comment.