Skip to content

Commit

Permalink
test: adjust mocking of feature gate
Browse files Browse the repository at this point in the history
  • Loading branch information
MuckT committed Mar 5, 2024
1 parent 4f70905 commit 6fb2c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TokenBalance.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jest.mocked(getDynamicConfigParams).mockReturnValue({
describe('FiatExchangeTokenBalance and HomeTokenBalance', () => {
beforeEach(() => {
jest.clearAllMocks()
jest.mocked(getFeatureGate).mockImplementation(() => true)
jest.mocked(getFeatureGate).mockReturnValue(true)
})

it.each([HomeTokenBalance, FiatExchangeTokenBalance])(
Expand Down

0 comments on commit 6fb2c1d

Please sign in to comment.