fix tests

This commit is contained in:
Ulf Gebhardt 2023-02-17 23:29:09 +01:00
parent c01a94aa24
commit cb058adde6
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -47,7 +47,8 @@ describe('TransactionLinkSummary', () => {
beforeEach(() => { beforeEach(() => {
apolloQueryMock.mockResolvedValue({ apolloQueryMock.mockResolvedValue({
data: { data: {
listTransactionLinks: [ listTransactionLinks: {
links: [
{ {
amount: '75', amount: '75',
link: 'http://localhost/redeem/ce28664b5308c17f931c0367', link: 'http://localhost/redeem/ce28664b5308c17f931c0367',
@ -93,6 +94,7 @@ describe('TransactionLinkSummary', () => {
}, },
], ],
}, },
},
}) })
wrapper = Wrapper() wrapper = Wrapper()
@ -166,7 +168,8 @@ describe('TransactionLinkSummary', () => {
jest.clearAllMocks() jest.clearAllMocks()
apolloQueryMock.mockResolvedValue({ apolloQueryMock.mockResolvedValue({
data: { data: {
listTransactionLinks: [ listTransactionLinks: {
links: [
{ {
amount: '76', amount: '76',
link: 'http://localhost/redeem/ce28664b5308c17f931c0367', link: 'http://localhost/redeem/ce28664b5308c17f931c0367',
@ -212,6 +215,7 @@ describe('TransactionLinkSummary', () => {
}, },
], ],
}, },
},
}) })
await wrapper.setData({ await wrapper.setData({
currentPage: 2, currentPage: 2,