diff --git a/assets/js/state/selectors/clusterChecksResultsFilters.test.js b/assets/js/state/selectors/clusterChecksResultsFilters.test.js index 8a77caa9b1..cddcff5e49 100644 --- a/assets/js/state/selectors/clusterChecksResultsFilters.test.js +++ b/assets/js/state/selectors/clusterChecksResultsFilters.test.js @@ -5,6 +5,7 @@ import { getSelectedFilters } from './clusterChecksResultsFilters'; describe('getSelectedFilters', () => { it('should return an empty array if the cluster ID is not found', () => { const clusterID = faker.datatype.uuid(); + expect( getSelectedFilters(clusterID)({ clusterChecksResultsFilters: {} }) ).toEqual([]); @@ -15,6 +16,7 @@ describe('getSelectedFilters', () => { const state = { clusterChecksResultsFilters: { [clusterID]: ['passing', 'critical'] }, }; + expect(getSelectedFilters(clusterID)(state)).toEqual([ 'passing', 'critical',