Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adonesky1 committed Jun 20, 2024
1 parent 44a6e33 commit 34b4be2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/scripts/controllers/app-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export default class AppStateController extends EventEmitter {
...initState,
qrHardware: {},
nftsDropdownState: {},
queuedRequestCount: 0,
usedNetworks: {
'0x1': true,
'0x5': true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@
"selectedAddress": "string"
},
"PushPlatformNotificationsController": { "fcmToken": "string" },
"QueuedRequestController": "object",
"SelectedNetworkController": { "domains": "object" },
"SignatureController": {
"unapprovedMsgs": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"nftsDropdownState": {},
"termsOfUseLastAgreed": "number",
"qrHardware": {},
"queuedRequestCount": "number",
"usedNetworks": { "0x1": true, "0x5": true, "0x539": true },
"snapsInstallPrivacyWarningShown": true,
"surveyLinkLastClickedOrClosed": "object",
Expand Down
4 changes: 2 additions & 2 deletions ui/selectors/transactions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -767,10 +767,10 @@ describe('Transaction Selectors', () => {
expect(result).toBe(true);
});

it('should return false if there is a pending transaction on different network', () => {
it('should return true if there is a pending transaction on different network', () => {
mockedState.metamask.transactions[0].chainId = 'differentChainId';
const result = hasTransactionPendingApprovals(mockedState);
expect(result).toBe(false);
expect(result).toBe(true);
});

it.each([
Expand Down

0 comments on commit 34b4be2

Please sign in to comment.