Skip to content

Commit

Permalink
remove fixture fallback config for phishing controller and default st…
Browse files Browse the repository at this point in the history
…ate of it since now it is just an empty array
  • Loading branch information
tommasini committed Mar 5, 2024
1 parent 9c0de9f commit c4026fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
4 changes: 0 additions & 4 deletions app/core/Engine.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 } =
Expand Down
12 changes: 1 addition & 11 deletions app/util/test/initial-background-state.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4026fe

Please sign in to comment.