specs status

This commit is contained in:
ogerly 2021-05-12 15:42:09 +02:00
parent e8e828baf1
commit 77d72cf472
3 changed files with 10 additions and 7 deletions

View File

@ -9,8 +9,6 @@
:gdt-balance="GdtBalance"
/>
<br />
<gdd-send :balance="balance" :gdt-balance="GdtBalance" />
<br />
<gdd-send :currentTransactionStep="currentTransactionStep">
<template #transaction-form>
<transaction-form :balance="balance" @set-transaction="setTransaction"></transaction-form>

View File

@ -24,8 +24,14 @@ describe('GddStatus', () => {
wrapper = Wrapper()
})
it('it displays the ammount of GDD', () => {
expect(wrapper.findAll('div.card-body b').at(0).text()).toEqual('1234')
describe('balance is loading', () => {
it('it displays em-dash as the ammount of GDD', () => {
expect(wrapper.findAll('div.card-body').at(0).text()).toEqual('— GDD')
})
it('it displays em-dash as the ammount of GDT', () => {
expect(wrapper.findAll('div.card-body').at(1).text()).toEqual('— GDT')
})
})
describe('balance is loaded', () => {
@ -36,7 +42,7 @@ describe('GddStatus', () => {
})
it('it displays the ammount of GDD', () => {
expect(wrapper.findAll('div.card-body b').at(0).text()).toEqual('1234')
expect(wrapper.findAll('div.card-body').at(0).text()).toEqual('1234 GDD')
})
it('it displays the ammount of GDT', () => {

View File

@ -3,8 +3,7 @@
<b-row>
<b-col>
<b-card style="background-color: #ebebeba3 !important">
<b>{{ pending ? '—' : $n(balance) }}</b>
GDD
{{ pending ? '—' : $n(balance) }} GDD
</b-card>
</b-col>
<b-col>