mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
specs status
This commit is contained in:
parent
e8e828baf1
commit
77d72cf472
@ -9,8 +9,6 @@
|
|||||||
:gdt-balance="GdtBalance"
|
:gdt-balance="GdtBalance"
|
||||||
/>
|
/>
|
||||||
<br />
|
<br />
|
||||||
<gdd-send :balance="balance" :gdt-balance="GdtBalance" />
|
|
||||||
<br />
|
|
||||||
<gdd-send :currentTransactionStep="currentTransactionStep">
|
<gdd-send :currentTransactionStep="currentTransactionStep">
|
||||||
<template #transaction-form>
|
<template #transaction-form>
|
||||||
<transaction-form :balance="balance" @set-transaction="setTransaction"></transaction-form>
|
<transaction-form :balance="balance" @set-transaction="setTransaction"></transaction-form>
|
||||||
|
|||||||
@ -24,8 +24,14 @@ describe('GddStatus', () => {
|
|||||||
wrapper = Wrapper()
|
wrapper = Wrapper()
|
||||||
})
|
})
|
||||||
|
|
||||||
it('it displays the ammount of GDD', () => {
|
describe('balance is loading', () => {
|
||||||
expect(wrapper.findAll('div.card-body b').at(0).text()).toEqual('1234')
|
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', () => {
|
describe('balance is loaded', () => {
|
||||||
@ -36,7 +42,7 @@ describe('GddStatus', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('it displays the ammount of GDD', () => {
|
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', () => {
|
it('it displays the ammount of GDT', () => {
|
||||||
|
|||||||
@ -3,8 +3,7 @@
|
|||||||
<b-row>
|
<b-row>
|
||||||
<b-col>
|
<b-col>
|
||||||
<b-card style="background-color: #ebebeba3 !important">
|
<b-card style="background-color: #ebebeba3 !important">
|
||||||
<b>{{ pending ? '—' : $n(balance) }}</b>
|
{{ pending ? '—' : $n(balance) }} GDD
|
||||||
GDD
|
|
||||||
</b-card>
|
</b-card>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col>
|
<b-col>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user