From c4026fec3ba519bc325dfc4e02a133fdde06047c Mon Sep 17 00:00:00 2001 From: tommasini Date: Tue, 5 Mar 2024 21:24:11 +0000 Subject: [PATCH] remove fixture fallback config for phishing controller and default state of it since now it is just an empty array --- app/core/Engine.test.js | 4 ---- app/util/test/initial-background-state.json | 12 +----------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/app/core/Engine.test.js b/app/core/Engine.test.js index d70fb7f15ed..c2d1bf3ad96 100644 --- a/app/core/Engine.test.js +++ b/app/core/Engine.test.js @@ -42,10 +42,6 @@ describe('Engine', () => { it('matches initial state fixture', () => { const engine = Engine.init({}); let backgroundState = engine.datamodel.state; - // Replace phishing controller fallback config, as it bloats the test fixture too much - backgroundState.PhishingController.phishingLists[0].allowlist = []; - backgroundState.PhishingController.phishingLists[0].blocklist = []; - backgroundState.PhishingController.phishingLists[0].fuzzylist = []; // deleting lastVisited from chainStatus, since its timestamp it makes the test case fail const { chainId, versionInfo } = diff --git a/app/util/test/initial-background-state.json b/app/util/test/initial-background-state.json index 3411e941c18..2ecfd3361a5 100644 --- a/app/util/test/initial-background-state.json +++ b/app/util/test/initial-background-state.json @@ -75,17 +75,7 @@ "networkStatus": "unknown" }, "PhishingController": { - "phishingLists": [ - { - "allowlist": [], - "blocklist": [], - "fuzzylist": [], - "tolerance": 2, - "version": 2, - "name": "MetaMask", - "lastUpdated": 0 - } - ], + "phishingLists": [], "whitelist": [], "hotlistLastFetched": 0, "stalelistLastFetched": 0