diff --git a/ui/selectors/selectors.test.js b/ui/selectors/selectors.test.js index 91930c94d865..b2d62666e286 100644 --- a/ui/selectors/selectors.test.js +++ b/ui/selectors/selectors.test.js @@ -737,4 +737,24 @@ describe('Selectors', () => { mockState.metamask.snapsInstallPrivacyWarningShown = null; expect(selectors.getSnapsInstallPrivacyWarningShown(mockState)).toBe(false); }); + + it('#getInfuraBlocked', () => { + let isInfuraBlocked = selectors.getInfuraBlocked(mockState); + expect(isInfuraBlocked).toBe(false); + + const modifiedMockState = { + ...mockState, + metamask: { + ...mockState.metamask, + networksMetadata: { + ...mockState.metamask.networksMetadata, + goerli: { + status: 'blocked', + }, + }, + }, + }; + isInfuraBlocked = selectors.getInfuraBlocked(modifiedMockState); + expect(isInfuraBlocked).toBe(true); + }); });