aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEsteban MIno <efmino@uc.cl>2018-08-24 02:54:40 +0800
committerEsteban MIno <efmino@uc.cl>2018-08-24 02:54:40 +0800
commitb59a1e91b8f4b595500a0785f325e833fa35407d (patch)
treee2c8f4e58961d91be4010f16ea2b91723244bddc /test
parent56bed3f1bce3cde176784026b10bc3bbe8e819d0 (diff)
downloadtangerine-wallet-browser-b59a1e91b8f4b595500a0785f325e833fa35407d.tar
tangerine-wallet-browser-b59a1e91b8f4b595500a0785f325e833fa35407d.tar.gz
tangerine-wallet-browser-b59a1e91b8f4b595500a0785f325e833fa35407d.tar.bz2
tangerine-wallet-browser-b59a1e91b8f4b595500a0785f325e833fa35407d.tar.lz
tangerine-wallet-browser-b59a1e91b8f4b595500a0785f325e833fa35407d.tar.xz
tangerine-wallet-browser-b59a1e91b8f4b595500a0785f325e833fa35407d.tar.zst
tangerine-wallet-browser-b59a1e91b8f4b595500a0785f325e833fa35407d.zip
typo watchAsset imageUrl to image
Diffstat (limited to 'test')
-rw-r--r--test/unit/app/controllers/preferences-controller-test.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/unit/app/controllers/preferences-controller-test.js b/test/unit/app/controllers/preferences-controller-test.js
index 58fc3d9c5..d63356215 100644
--- a/test/unit/app/controllers/preferences-controller-test.js
+++ b/test/unit/app/controllers/preferences-controller-test.js
@@ -409,8 +409,8 @@ describe('preferences controller', function () {
const address = '0xabcdef1234567'
const symbol = 'ABBR'
const decimals = 5
- const imageUrl = 'someimageurl'
- req.params.options = { address, symbol, decimals, imageUrl }
+ const image = 'someimage'
+ req.params.options = { address, symbol, decimals, image }
sandbox.stub(preferencesController, '_validateERC20AssetParams').returns(true)
preferencesController.showWatchAssetUi = async () => {}
@@ -422,19 +422,19 @@ describe('preferences controller', function () {
assert.equal(suggested[address].address, address, 'set address correctly')
assert.equal(suggested[address].symbol, symbol, 'set symbol correctly')
assert.equal(suggested[address].decimals, decimals, 'set decimals correctly')
- assert.equal(suggested[address].imageUrl, imageUrl, 'set imageUrl correctly')
+ assert.equal(suggested[address].image, image, 'set image correctly')
})
it('should add token correctly if user confirms', async function () {
const address = '0xabcdef1234567'
const symbol = 'ABBR'
const decimals = 5
- const imageUrl = 'someimageurl'
- req.params.options = { address, symbol, decimals, imageUrl }
+ const image = 'someimage'
+ req.params.options = { address, symbol, decimals, image }
sandbox.stub(preferencesController, '_validateERC20AssetParams').returns(true)
preferencesController.showWatchAssetUi = async () => {
- await preferencesController.addToken(address, symbol, decimals, imageUrl)
+ await preferencesController.addToken(address, symbol, decimals, image)
}
await preferencesController._handleWatchAssetERC20(req.params.options)
@@ -446,7 +446,7 @@ describe('preferences controller', function () {
assert.equal(added.decimals, decimals, 'set decimals correctly')
const assetImages = preferencesController.getAssetImages()
- assert.ok(assetImages[address], `set imageurl correctly`)
+ assert.ok(assetImages[address], `set image correctly`)
})
})
})