-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(OperatingSystemFilter): RHINENG-2912 - Fix OS inventory filter co…
…nversion
- Loading branch information
Showing
4 changed files
with
60 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import {getOsValue} from './Hooks'; | ||
|
||
describe('getOsValue', function () { | ||
it('returns a proper api osFilter when passed', () => { | ||
expect( | ||
getOsValue({ | ||
'RHEL-9': { | ||
'RHEL-9': true, | ||
'RHEL-9-9.5': true, | ||
'RHEL-9-9.4': true, | ||
'RHEL-9-9.3': true, | ||
'RHEL-9-9.2': true, | ||
'RHEL-9-9.1': true, | ||
'RHEL-9-9.0': true, | ||
}, | ||
'RHEL-8': { | ||
'RHEL-8': null, | ||
'RHEL-8-8.4': true, | ||
'RHEL-8-8.0': true, | ||
}, | ||
}) | ||
).toEqual(['8.0', '8.4', '9.5', '9.4', '9.3', '9.2', '9.1', '9.0'].sort()); | ||
}); | ||
}) | ||
|
||
// TODO Add test for useGetEntities hook | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters