diff options
author | Esteban MIno <efmino@uc.cl> | 2018-10-20 00:57:11 +0800 |
---|---|---|
committer | Esteban MIno <efmino@uc.cl> | 2018-10-20 00:57:11 +0800 |
commit | 75661673e5b2573ee9ab3a378130e4383c4c034f (patch) | |
tree | e99b18cf0804aabd0fe96807cd680c3ba186a37b /test | |
parent | ea214945cf88cef457147bd33a3017c8ea97956a (diff) | |
download | tangerine-wallet-browser-75661673e5b2573ee9ab3a378130e4383c4c034f.tar.gz tangerine-wallet-browser-75661673e5b2573ee9ab3a378130e4383c4c034f.tar.zst tangerine-wallet-browser-75661673e5b2573ee9ab3a378130e4383c4c034f.zip |
add support for wallet_watchAsset
Diffstat (limited to 'test')
-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 b5ccf3fb5..e81b072d5 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' |