diff options
author | kumavis <kumavis@users.noreply.github.com> | 2018-10-21 13:27:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-21 13:27:08 +0800 |
commit | b0c649a4e3c68293e08e764bbf4d53939df88e2d (patch) | |
tree | 5b58de5dfa96e96dcb527c7fd618f93a20c75fe8 /test/unit | |
parent | b53a1f492c3339ef6fe070ac7d02b63a4393669c (diff) | |
parent | 75661673e5b2573ee9ab3a378130e4383c4c034f (diff) | |
download | tangerine-wallet-browser-b0c649a4e3c68293e08e764bbf4d53939df88e2d.tar tangerine-wallet-browser-b0c649a4e3c68293e08e764bbf4d53939df88e2d.tar.gz tangerine-wallet-browser-b0c649a4e3c68293e08e764bbf4d53939df88e2d.tar.bz2 tangerine-wallet-browser-b0c649a4e3c68293e08e764bbf4d53939df88e2d.tar.lz tangerine-wallet-browser-b0c649a4e3c68293e08e764bbf4d53939df88e2d.tar.xz tangerine-wallet-browser-b0c649a4e3c68293e08e764bbf4d53939df88e2d.tar.zst tangerine-wallet-browser-b0c649a4e3c68293e08e764bbf4d53939df88e2d.zip |
Merge pull request #5555 from MetaMask/support-wallet-watch-asset
Support for prefix wallet_watchAsset
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/app/controllers/preferences-controller-test.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/app/controllers/preferences-controller-test.js b/test/unit/app/controllers/preferences-controller-test.js index 02f421de2..7f2804a83 100644 --- a/test/unit/app/controllers/preferences-controller-test.js +++ b/test/unit/app/controllers/preferences-controller-test.js @@ -375,6 +375,11 @@ describe('preferences controller', function () { await preferencesController.requestWatchAsset(req, res, asy.next, asy.end) sandbox.assert.called(stubEnd) sandbox.assert.notCalled(stubNext) + req.method = 'wallet_watchAsset' + req.params.type = 'someasset' + await preferencesController.requestWatchAsset(req, res, asy.next, asy.end) + sandbox.assert.calledTwice(stubEnd) + sandbox.assert.notCalled(stubNext) }) it('should through error if method is supported but asset type is not', async function () { req.method = 'metamask_watchAsset' |