parent
e51e6c42b5
commit
4d612d59f0
@ -1,14 +1,14 @@ |
||||
import { reducer, initialState } from '../../js/pages/transaction' |
||||
|
||||
test('RECEIVED_UPDATED_CONFIRMATIONS', () => { |
||||
const state = initialState |
||||
const state = { ...initialState, blockNumber: 1 } |
||||
const action = { |
||||
type: 'RECEIVED_UPDATED_CONFIRMATIONS', |
||||
msg: { |
||||
confirmations: 5 |
||||
blockNumber: 5 |
||||
} |
||||
} |
||||
const output = reducer(state, action) |
||||
|
||||
expect(output.confirmations).toBe(5) |
||||
expect(output.confirmations).toBe(4) |
||||
}) |
||||
|
@ -0,0 +1,10 @@ |
||||
<div class="card bg-primary" data-selector='balance'> |
||||
<div class="card-body"> |
||||
<h2 class="card-title text-white"><%= gettext "Balance" %></h2> |
||||
<span></span> |
||||
<div class="text-right"> |
||||
<h3 class="text-white" data-test="address_balance"><%= balance(@address) %></h3> |
||||
<span class="text-light"><%= formatted_usd(@address, @exchange_rate) %></span> |
||||
</div> |
||||
</div> |
||||
</div> |
Loading…
Reference in new issue