Update admin/src/pages/Overview.spec.js

Co-authored-by: Hannes Heine <heine.hannes@gmail.com>
This commit is contained in:
Alexander Friedland 2023-02-15 14:51:37 +01:00 committed by GitHub
parent 7c2bf9da7a
commit 580f57f99d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,59 +15,6 @@ const localVue = global.localVue
localVue.use(VueApollo) localVue.use(VueApollo)
const storeCommitMock = jest.fn() const storeCommitMock = jest.fn()
// const apolloQueryMock = jest.fn().mockResolvedValue({
// data: {
// listAllContributions: {
// contributionCount: 2,
// contributionList: [
// {
// id: 1,
// firstName: 'Bibi',
// lastName: 'Bloxberg',
// userId: 99,
// email: 'bibi@bloxberg.de',
// amount: 500,
// memo: 'Danke für alles',
// date: new Date(),
// moderator: 1,
// state: 'PENDING',
// creation: [500, 500, 500],
// messagesCount: 0,
// deniedBy: null,
// deniedAt: null,
// confirmedBy: null,
// confirmedAt: null,
// contributionDate: new Date(),
// deletedBy: null,
// deletedAt: null,
// createdAt: new Date(),
// },
// {
// id: 2,
// firstName: 'Räuber',
// lastName: 'Hotzenplotz',
// userId: 100,
// email: 'raeuber@hotzenplotz.de',
// amount: 1000000,
// memo: 'Gut Ergattert',
// date: new Date(),
// moderator: 1,
// state: 'PENDING',
// creation: [500, 500, 500],
// messagesCount: 0,
// deniedBy: null,
// deniedAt: null,
// confirmedBy: null,
// confirmedAt: null,
// contributionDate: new Date(),
// deletedBy: null,
// deletedAt: null,
// createdAt: new Date(),
// },
// ],
// },
// },
// })
const mocks = { const mocks = {
$t: jest.fn((t) => t), $t: jest.fn((t) => t),