mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fixed tests for pagenation
This commit is contained in:
parent
c0b56de91a
commit
3e98657c1f
@ -23,7 +23,7 @@ describe('GddTransactionList', () => {
|
||||
return mount(GddTransactionList, { localVue, mocks })
|
||||
}
|
||||
|
||||
const decayStartBlock = new Date(2001, 8, 9)
|
||||
const decayStartBlock = new Date('2021-05-13 17:46:31-0000')
|
||||
|
||||
describe('mount', () => {
|
||||
beforeEach(() => {
|
||||
@ -413,12 +413,16 @@ describe('GddTransactionList', () => {
|
||||
return {
|
||||
amount: '3.14',
|
||||
balanceDate: '2021-04-29T17:26:40+00:00',
|
||||
decay: {},
|
||||
decay: {
|
||||
decay: '-477.01',
|
||||
start: '2021-05-13T17:46:31.000Z',
|
||||
end: '2022-04-20T06:51:25.000Z',
|
||||
duration: 29509494,
|
||||
},
|
||||
memo: 'Kreiszahl PI',
|
||||
linkedUser: {
|
||||
firstName: 'Bibi',
|
||||
lastName: 'Bloxberg',
|
||||
__typename: 'User',
|
||||
},
|
||||
id: idx + 1,
|
||||
typeId: 'RECEIVE',
|
||||
@ -435,6 +439,7 @@ describe('GddTransactionList', () => {
|
||||
describe('next page button clicked', () => {
|
||||
beforeEach(async () => {
|
||||
jest.clearAllMocks()
|
||||
// await wrapper.vm.$nextTick()
|
||||
await wrapper.findComponent({ name: 'BPagination' }).vm.$emit('input', 2)
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user