mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Add expected data to Protocols tests.
This commit is contained in:
parent
d32b520145
commit
11f19262b0
@ -822,6 +822,8 @@ describe('ContributionResolver', () => {
|
|||||||
type: EventProtocolType.ADMIN_CONTRIBUTION_DENY,
|
type: EventProtocolType.ADMIN_CONTRIBUTION_DENY,
|
||||||
userId: bibi.id,
|
userId: bibi.id,
|
||||||
xUserId: admin.id,
|
xUserId: admin.id,
|
||||||
|
contributionId: contributionToDeny.data.createContribution.id,
|
||||||
|
amount: expect.decimalEqual(100),
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
@ -2080,6 +2082,7 @@ describe('ContributionResolver', () => {
|
|||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
type: EventProtocolType.ADMIN_CONTRIBUTION_CREATE,
|
type: EventProtocolType.ADMIN_CONTRIBUTION_CREATE,
|
||||||
userId: admin.id,
|
userId: admin.id,
|
||||||
|
amount: expect.decimalEqual(200),
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
@ -2345,7 +2348,8 @@ describe('ContributionResolver', () => {
|
|||||||
await expect(EventProtocol.find()).resolves.toContainEqual(
|
await expect(EventProtocol.find()).resolves.toContainEqual(
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
type: EventProtocolType.ADMIN_CONTRIBUTION_UPDATE,
|
type: EventProtocolType.ADMIN_CONTRIBUTION_UPDATE,
|
||||||
userId: bibi.id,
|
userId: admin.id,
|
||||||
|
amount: 300,
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
@ -2385,7 +2389,8 @@ describe('ContributionResolver', () => {
|
|||||||
await expect(EventProtocol.find()).resolves.toContainEqual(
|
await expect(EventProtocol.find()).resolves.toContainEqual(
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
type: EventProtocolType.ADMIN_CONTRIBUTION_UPDATE,
|
type: EventProtocolType.ADMIN_CONTRIBUTION_UPDATE,
|
||||||
userId: bibi.id,
|
userId: admin.id,
|
||||||
|
amount: expect.decimalEqual(200),
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
@ -2563,7 +2568,8 @@ describe('ContributionResolver', () => {
|
|||||||
await expect(EventProtocol.find()).resolves.toContainEqual(
|
await expect(EventProtocol.find()).resolves.toContainEqual(
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
type: EventProtocolType.ADMIN_CONTRIBUTION_DELETE,
|
type: EventProtocolType.ADMIN_CONTRIBUTION_DELETE,
|
||||||
userId: bibi.id,
|
userId: admin.id,
|
||||||
|
amount: expect.decimalEqual(400),
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user