aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Finlay <flyswatter@users.noreply.github.com>2017-06-13 01:36:36 +0800
committerGitHub <noreply@github.com>2017-06-13 01:36:36 +0800
commit4298d80127c51e096f9ad6ce2a20e95e30033a4a (patch)
tree93fd48b1d4c4e646520bb1b8a463bc1fbdcb3eef /test
parent7057c24471059505ae930f4a81fd24e2120c189b (diff)
parentba254d9041aa2cd656ff313547e890fa40917425 (diff)
downloadtangerine-wallet-browser-4298d80127c51e096f9ad6ce2a20e95e30033a4a.tar.gz
tangerine-wallet-browser-4298d80127c51e096f9ad6ce2a20e95e30033a4a.tar.zst
tangerine-wallet-browser-4298d80127c51e096f9ad6ce2a20e95e30033a4a.zip
Merge pull request #1552 from MetaMask/currency-fix
Fix Currency API
Diffstat (limited to 'test')
-rw-r--r--test/unit/currency-controller-test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/currency-controller-test.js b/test/unit/currency-controller-test.js
index cfbce7fb3..5eeaf9bcc 100644
--- a/test/unit/currency-controller-test.js
+++ b/test/unit/currency-controller-test.js
@@ -36,7 +36,7 @@ describe('currency-controller', function () {
describe('#updateConversionRate', function () {
it('should retrieve an update for ETH to USD and set it in memory', function (done) {
this.timeout(15000)
- nock('https://www.cryptonator.com')
+ nock('https://api.cryptonator.com')
.get('/api/ticker/eth-USD')
.reply(200, '{"ticker":{"base":"ETH","target":"USD","price":"11.02456145","volume":"44948.91745289","change":"-0.01472534"},"timestamp":1472072136,"success":true,"error":""}')
@@ -57,7 +57,7 @@ describe('currency-controller', function () {
this.timeout(15000)
assert.equal(currencyController.getConversionRate(), 0)
- nock('https://www.cryptonator.com')
+ nock('https://api.cryptonator.com')
.get('/api/ticker/eth-JPY')
.reply(200, '{"ticker":{"base":"ETH","target":"JPY","price":"11.02456145","volume":"44948.91745289","change":"-0.01472534"},"timestamp":1472072136,"success":true,"error":""}')