mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Withdrew change that destroyed the gdd transaction list. Changed the Gdtinputs to Int instead of Number, Changed the test description to the reviewed fixes.
This commit is contained in:
parent
07cac1ec64
commit
a1697f1b79
@ -1,14 +1,14 @@
|
||||
import { ArgsType, Field } from 'type-graphql'
|
||||
import { ArgsType, Field, Int } from 'type-graphql'
|
||||
|
||||
@ArgsType()
|
||||
export class GdtTransactionInput {
|
||||
@Field(() => String)
|
||||
email: string
|
||||
|
||||
@Field(() => Number, { nullable: true })
|
||||
@Field(() => Int, { nullable: true })
|
||||
currentPage?: number
|
||||
|
||||
@Field(() => Number, { nullable: true })
|
||||
@Field(() => Int, { nullable: true })
|
||||
pageSize?: number
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<div class="gdd-transaction-list">
|
||||
<b-list-group>
|
||||
<b-list-group-item
|
||||
v-for="{ decay, transactionId, type, date, balance, name, memo } in transactions"
|
||||
:key="transactionId"
|
||||
<div class="list-group">
|
||||
<div
|
||||
v-for="{ decay, transaction_id, type, date, balance, name, memo } in transactions"
|
||||
:key="transaction_id"
|
||||
:style="type === 'decay' ? 'background-color:#f1e0ae3d' : ''"
|
||||
>
|
||||
<div class="list-group-item gdd-transaction-list-item" v-b-toggle="'a' + date + ''">
|
||||
@ -70,7 +70,7 @@
|
||||
|
||||
<!-- Collaps End -->
|
||||
</div>
|
||||
</b-list-group-item>
|
||||
</div>
|
||||
<pagination-buttons
|
||||
v-if="showPagination && transactionCount > pageSize"
|
||||
:has-next="hasNext"
|
||||
@ -83,7 +83,7 @@
|
||||
<div v-if="transactions.length === 0" class="mt-4 text-center">
|
||||
<span>{{ $t('transaction.nullTransactions') }}</span>
|
||||
</div>
|
||||
</b-list-group>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@ -63,10 +63,6 @@ describe('UserCard_FormUserMail', () => {
|
||||
await flushPromises()
|
||||
})
|
||||
|
||||
it('enter email in input field', () => {
|
||||
expect(wrapper.find('input').element.value).toBe('test@example.org')
|
||||
})
|
||||
|
||||
describe('error API send', () => {
|
||||
beforeEach(async () => {
|
||||
mockAPIcall.mockRejectedValue({
|
||||
@ -76,7 +72,7 @@ describe('UserCard_FormUserMail', () => {
|
||||
await flushPromises()
|
||||
})
|
||||
|
||||
it('send request with filled variables to the API', async () => {
|
||||
it('sends request with filled variables to the API', async () => {
|
||||
expect(mockAPIcall).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
variables: {
|
||||
@ -106,7 +102,7 @@ describe('UserCard_FormUserMail', () => {
|
||||
await flushPromises()
|
||||
})
|
||||
|
||||
it('send request with filled variables to the API', async () => {
|
||||
it('sends request with filled variables to the API', async () => {
|
||||
expect(mockAPIcall).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
variables: {
|
||||
@ -118,7 +114,7 @@ describe('UserCard_FormUserMail', () => {
|
||||
)
|
||||
})
|
||||
|
||||
it('successful message is send to the window.alert', async () => {
|
||||
it('sends a success message', async () => {
|
||||
expect(window.alert).toBeCalledWith('changePassword success')
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user