diff options
author | Kevin Serrano <kevin.serrano@consensys.net> | 2017-06-06 07:24:32 +0800 |
---|---|---|
committer | Kevin Serrano <kevin.serrano@consensys.net> | 2017-06-06 07:24:32 +0800 |
commit | f7773538ebb583905b5385096abea48c58e7673c (patch) | |
tree | df986afdd1b47a0f4edf7c4777413ef8f1ddfda8 /test/unit | |
parent | 203a573f3fa8cf636c846a0a467318f6767d05fe (diff) | |
download | tangerine-wallet-browser-f7773538ebb583905b5385096abea48c58e7673c.tar tangerine-wallet-browser-f7773538ebb583905b5385096abea48c58e7673c.tar.gz tangerine-wallet-browser-f7773538ebb583905b5385096abea48c58e7673c.tar.bz2 tangerine-wallet-browser-f7773538ebb583905b5385096abea48c58e7673c.tar.lz tangerine-wallet-browser-f7773538ebb583905b5385096abea48c58e7673c.tar.xz tangerine-wallet-browser-f7773538ebb583905b5385096abea48c58e7673c.tar.zst tangerine-wallet-browser-f7773538ebb583905b5385096abea48c58e7673c.zip |
Modify tests for new api mock.'
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/currency-controller-test.js | 4 |
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":""}') |