mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix test
This commit is contained in:
parent
5c6804aea7
commit
2b64ca8fe0
@ -121,7 +121,7 @@
|
|||||||
:per-page="pageSize"
|
:per-page="pageSize"
|
||||||
:total-rows="transactionCount"
|
:total-rows="transactionCount"
|
||||||
></pagination-buttons>
|
></pagination-buttons>
|
||||||
<div v-if="transactions.length === 0" class="mt-4 text-center">
|
<div v-if="transactionCount === 0" class="mt-4 text-center">
|
||||||
<span>{{ $t('transaction.nullTransactions') }}</span>
|
<span>{{ $t('transaction.nullTransactions') }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -51,10 +51,18 @@ const windowScrollToMock = jest.fn()
|
|||||||
|
|
||||||
window.scrollTo = windowScrollToMock
|
window.scrollTo = windowScrollToMock
|
||||||
|
|
||||||
|
const state = {
|
||||||
|
language: null,
|
||||||
|
}
|
||||||
|
|
||||||
describe('GdtTransactionList', () => {
|
describe('GdtTransactionList', () => {
|
||||||
let wrapper
|
let wrapper
|
||||||
|
|
||||||
const mocks = {
|
const mocks = {
|
||||||
|
$store: {
|
||||||
|
state,
|
||||||
|
commit: jest.fn(),
|
||||||
|
},
|
||||||
$i18n: {
|
$i18n: {
|
||||||
locale: 'en',
|
locale: 'en',
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="gdt-transaction-list">
|
<div class="gdt-transaction-list">
|
||||||
<div class="list-group" style="background-color: #fff">
|
<div class="list-group">
|
||||||
<div v-if="transactionGdtCount === 0">
|
<div v-if="transactionGdtCount === 0" class="text-center">
|
||||||
{{ $t('gdt.no-transactions') }}
|
{{ $t('gdt.no-transactions') }}
|
||||||
<hr />
|
<hr />
|
||||||
<b-button :href="link" target="_blank">{{ $t('gdt.funding') }}</b-button>
|
<b-button :href="link" target="_blank">{{ $t('gdt.funding') }}</b-button>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user