aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-01-17 04:08:20 +0800
committerkumavis <aaron@kumavis.me>2017-01-17 04:08:20 +0800
commit4a09f856d11660db3118d05f98eb410d3b208b56 (patch)
treefdf93935e7b6b46c5abd6a32d5ef7b1141063d3d /test
parent82012cbbce47c691d322b290ad9e77723b289f0b (diff)
downloadtangerine-wallet-browser-4a09f856d11660db3118d05f98eb410d3b208b56.tar
tangerine-wallet-browser-4a09f856d11660db3118d05f98eb410d3b208b56.tar.gz
tangerine-wallet-browser-4a09f856d11660db3118d05f98eb410d3b208b56.tar.bz2
tangerine-wallet-browser-4a09f856d11660db3118d05f98eb410d3b208b56.tar.lz
tangerine-wallet-browser-4a09f856d11660db3118d05f98eb410d3b208b56.tar.xz
tangerine-wallet-browser-4a09f856d11660db3118d05f98eb410d3b208b56.tar.zst
tangerine-wallet-browser-4a09f856d11660db3118d05f98eb410d3b208b56.zip
test - keyring - simple - fix fixture data
Diffstat (limited to 'test')
-rw-r--r--test/unit/keyrings/simple-test.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/unit/keyrings/simple-test.js b/test/unit/keyrings/simple-test.js
index 979abdb69..687318f99 100644
--- a/test/unit/keyrings/simple-test.js
+++ b/test/unit/keyrings/simple-test.js
@@ -1,5 +1,6 @@
const assert = require('assert')
const extend = require('xtend')
+const ethUtil = require('ethereumjs-util')
const SimpleKeyring = require('../../../app/scripts/keyrings/simple')
const TYPE_STR = 'Simple Key Pair'
@@ -72,14 +73,10 @@ describe('simple-keyring', function() {
it('calls getAddress on each wallet', function(done) {
// Push a mock wallet
- const desiredOutput = 'foo'
+ const desiredOutput = '0x18a3462427bcc9133bb46e88bcbe39cd7ef0e761'
keyring.wallets.push({
getAddress() {
- return {
- toString() {
- return desiredOutput
- }
- }
+ return ethUtil.toBuffer(desiredOutput)
}
})