Skip to content

Commit

Permalink
test: fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
kaustavb12 committed Jun 14, 2024
1 parent a439aa0 commit 3e13e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/selectors/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ describe('root selectors', () => {
describe('if neither/only 1 are default values', () => {
beforeEach(() => {
filterConstants.filterConfig[filterName] = testConfig;
config = selectors.root.filterBadgeConfig(testState, filterName);
});
describe.each([
['neither', () => false],
Expand All @@ -98,6 +97,7 @@ describe('root selectors', () => {
])('%1 is default', (label, isDefaultFn) => {
it('returns isDefault: false, string value, and remaining filterConfig', () => {
selectors.filters.isDefault.mockImplementation(isDefaultFn);
config = selectors.root.filterBadgeConfig(testState, filterName);
const { filterOrder, ...rest } = testConfig;
expect(config).toEqual({
isDefault: false,
Expand Down

0 comments on commit 3e13e5c

Please sign in to comment.