aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-10-21 13:27:08 +0800
committerGitHub <noreply@github.com>2018-10-21 13:27:08 +0800
commitb0c649a4e3c68293e08e764bbf4d53939df88e2d (patch)
tree5b58de5dfa96e96dcb527c7fd618f93a20c75fe8 /test/unit
parentb53a1f492c3339ef6fe070ac7d02b63a4393669c (diff)
parent75661673e5b2573ee9ab3a378130e4383c4c034f (diff)
downloadtangerine-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.js5
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'