Skip to content

Commit

Permalink
fix: update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VGau committed Mar 15, 2024
1 parent 9bc6cf5 commit d8d80fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions app/store/migrations/025.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ describe('Migration #25', () => {
'0xfa2': true,
'0xaa36a7': true,
'0xe704': true,
'0xe705': true,
'0xe708': true,
'0x504': true,
'0x507': true,
Expand Down Expand Up @@ -54,6 +55,7 @@ describe('Migration #25', () => {
'0xfa2': false,
'0xaa36a7': false,
'0xe704': false,
'0xe705': false,
'0xe708': false,
'0x504': false,
'0x507': false,
Expand Down
1 change: 1 addition & 0 deletions app/util/test/initial-background-state.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
"0xfa2": true,
"0xaa36a7": true,
"0xe704": true,
"0xe705": true,
"0xe708": true,
"0x504": true,
"0x507": true,
Expand Down
9 changes: 5 additions & 4 deletions patches/@metamask+preferences-controller+4.4.3.patch
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ index 323a8e8..0c5ed1b 100644
//# sourceMappingURL=PreferencesController.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@metamask/preferences-controller/dist/PreferencesController.js b/node_modules/@metamask/preferences-controller/dist/PreferencesController.js
index 1a98ab0..44f7bff 100644
index 1a98ab0..6f8c16e 100644
--- a/node_modules/@metamask/preferences-controller/dist/PreferencesController.js
+++ b/node_modules/@metamask/preferences-controller/dist/PreferencesController.js
@@ -3,6 +3,30 @@ Object.defineProperty(exports, "__esModule", { value: true });
Expand Down Expand Up @@ -100,7 +100,7 @@ index 1a98ab0..44f7bff 100644
securityAlertsEnabled: false,
isMultiAccountBalancesEnabled: true,
disabledRpcMethodPreferences: {
@@ -35,6 +60,27 @@ class PreferencesController extends base_controller_1.BaseController {
@@ -35,6 +60,28 @@ class PreferencesController extends base_controller_1.BaseController {
},
showTestNetworks: false,
isIpfsGatewayEnabled: true,
Expand All @@ -119,6 +119,7 @@ index 1a98ab0..44f7bff 100644
+ [ETHERSCAN_SUPPORTED_CHAIN_IDS.FANTOM_TESTNET]: true,
+ [ETHERSCAN_SUPPORTED_CHAIN_IDS.SEPOLIA]: true,
+ [ETHERSCAN_SUPPORTED_CHAIN_IDS.LINEA_GOERLI]: true,
+ [ETHERSCAN_SUPPORTED_CHAIN_IDS.LINEA_SEPOLIA]: true,
+ [ETHERSCAN_SUPPORTED_CHAIN_IDS.LINEA_MAINNET]: true,
+ [ETHERSCAN_SUPPORTED_CHAIN_IDS.MOONBEAM]: true,
+ [ETHERSCAN_SUPPORTED_CHAIN_IDS.MOONBEAM_TESTNET]: true,
Expand All @@ -128,7 +129,7 @@ index 1a98ab0..44f7bff 100644
};
this.initialize();
}
@@ -185,22 +231,33 @@ class PreferencesController extends base_controller_1.BaseController {
@@ -185,22 +232,33 @@ class PreferencesController extends base_controller_1.BaseController {
* @param useNftDetection - Boolean indicating user preference on NFT detection.
*/
setUseNftDetection(useNftDetection) {
Expand Down Expand Up @@ -169,7 +170,7 @@ index 1a98ab0..44f7bff 100644
/**
* Toggle the security alert enabled setting.
*
@@ -244,7 +301,25 @@ class PreferencesController extends base_controller_1.BaseController {
@@ -244,7 +302,25 @@ class PreferencesController extends base_controller_1.BaseController {
setIsIpfsGatewayEnabled(isIpfsGatewayEnabled) {
this.update({ isIpfsGatewayEnabled });
}
Expand Down

0 comments on commit d8d80fc

Please sign in to comment.