diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/data/mock-state.json | 3 | ||||
-rw-r--r-- | test/unit/app/controllers/incoming-transactions-test.js | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/data/mock-state.json b/test/data/mock-state.json index ed25b0abe..0be365249 100644 --- a/test/data/mock-state.json +++ b/test/data/mock-state.json @@ -1,5 +1,8 @@ { "metamask": { + "featureFlags": { + "showIncomingTransactions": true + }, "network": "4", "identities": { "0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc": { diff --git a/test/unit/app/controllers/incoming-transactions-test.js b/test/unit/app/controllers/incoming-transactions-test.js index e77c83a3d..0f8385af2 100644 --- a/test/unit/app/controllers/incoming-transactions-test.js +++ b/test/unit/app/controllers/incoming-transactions-test.js @@ -63,6 +63,11 @@ describe('IncomingTransactionsController', () => { const MOCK_PREFERENCES_CONTROLLER = { getSelectedAddress: sinon.stub().returns('0x0101'), store: { + getState: sinon.stub().returns({ + featureFlags: { + showIncomingTransactions: true, + }, + }), subscribe: sinon.spy(), }, } |