Skip to content

Commit

Permalink
Repair tests
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Jun 5, 2019
1 parent 961cab2 commit ffae068
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Expand Up @@ -69,14 +69,14 @@ export default ({ coreSagas, networks }) => {
payment.value()
)
payment = yield payment.fee(defaultFeePerByte)
if (to) {
payment = yield payment.to(to, ADDRESS_TYPES.ADDRESS)
const prepareTo = to => {
return to ? { value: { value: to, label: to } } : null
}
const initialValues = {
coin: 'BTC',
amount,
description,
to: { value: { value: to, label: to } },
to: prepareTo(to),
from: from || defaultAccountR.getOrElse(),
feePerByte: defaultFeePerByte
}
Expand Down
Expand Up @@ -77,23 +77,23 @@ describe('sendBtc sagas', () => {
})

describe('btc send form initialize', () => {
const to = { value: { value: 'btcaddress', label: 'btcaddress' } }
const to = null
const description = 'message'
const amount = {
coin: 1,
fiat: 10000
}
const payload = { to, description, amount, feeType }
const payload = { description, amount, feeType }

const saga = testSaga(initialized, { payload })

const defaultIndex = 0
const defaultAccount = 'account1'
const accountsRStub = Remote.of([defaultAccount, 'account2'])
const initialValues = {
to,
coin: 'BTC',
amount,
to,
description,
from: defaultAccount,
feePerByte: feePerByte
Expand Down Expand Up @@ -221,8 +221,8 @@ describe('sendBtc sagas', () => {
coin: 'BTC',
amount,
description,
to,
from: defaultAccount
from: defaultAccount,
to: null
})
})

Expand Down

0 comments on commit ffae068

Please sign in to comment.