aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-05-25 12:17:56 +0800
committerkumavis <aaron@kumavis.me>2018-05-25 12:17:56 +0800
commit380964a68728b557a892d4b2e7175f45afe8222a (patch)
tree5dcfd537bc7fe19920e21172838652254810eb81 /test/unit
parent41e4d27cafc3e5fa5f295552ff7d395719d5cc3f (diff)
downloadtangerine-wallet-browser-380964a68728b557a892d4b2e7175f45afe8222a.tar
tangerine-wallet-browser-380964a68728b557a892d4b2e7175f45afe8222a.tar.gz
tangerine-wallet-browser-380964a68728b557a892d4b2e7175f45afe8222a.tar.bz2
tangerine-wallet-browser-380964a68728b557a892d4b2e7175f45afe8222a.tar.lz
tangerine-wallet-browser-380964a68728b557a892d4b2e7175f45afe8222a.tar.xz
tangerine-wallet-browser-380964a68728b557a892d4b2e7175f45afe8222a.tar.zst
tangerine-wallet-browser-380964a68728b557a892d4b2e7175f45afe8222a.zip
test - unit - metamask-controller - polyfill global.fetch
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/app/controllers/metamask-controller-test.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unit/app/controllers/metamask-controller-test.js b/test/unit/app/controllers/metamask-controller-test.js
index 4bc16e65e..101fdfdc1 100644
--- a/test/unit/app/controllers/metamask-controller-test.js
+++ b/test/unit/app/controllers/metamask-controller-test.js
@@ -1,3 +1,5 @@
+global.fetch = global.fetch || require('isomorphic-fetch')
+
const assert = require('assert')
const sinon = require('sinon')
const clone = require('clone')
@@ -479,7 +481,7 @@ describe('MetaMaskController', function () {
it('errors when signing a message', async function () {
await metamaskController.signPersonalMessage(personalMessages[0].msgParams)
assert.equal(metamaskPersonalMsgs[msgId].status, 'signed')
- assert.equal(metamaskPersonalMsgs[msgId].rawSig, '0x6a1b65e2b8ed53cf398a769fad24738f9fbe29841fe6854e226953542c4b6a173473cb152b6b1ae5f06d601d45dd699a129b0a8ca84e78b423031db5baa734741b')
+ assert.equal(metamaskPersonalMsgs[msgId].rawSig, '0x6a1b65e2b8ed53cf398a769fad24738f9fbe29841fe6854e226953542c4b6a173473cb152b6b1ae5f06d601d45dd699a129b0a8ca84e78b423031db5baa734741b')
})
})
@@ -513,7 +515,7 @@ describe('MetaMaskController', function () {
})
it('sets up controller dnode api for trusted communication', function (done) {
- streamTest = createThoughStream((chunk, enc, cb) => {
+ streamTest = createThoughStream((chunk, enc, cb) => {
assert.equal(chunk.name, 'controller')
cb()
done()