1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

test - keyring - simple - fix fixture data

This commit is contained in:
kumavis 2017-01-16 12:08:20 -08:00
parent 82012cbbce
commit 4a09f856d1

View File

@ -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)
}
})