mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Change test for listCOntributionLinks to get empty object as user without admin rights.
This commit is contained in:
parent
7201fb6fc3
commit
5fb491572d
@ -1858,24 +1858,14 @@ describe('AdminResolver', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
describe('listContributionLinks', () => {
|
describe('listContributionLinks', () => {
|
||||||
it('returns an error', async () => {
|
it('returns an empty object', async () => {
|
||||||
await expect(query({ query: listContributionLinks })).resolves.toEqual(
|
await expect(query({ query: listContributionLinks })).resolves.toEqual(
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
data: {
|
data: {
|
||||||
createContributionLink: expect.objectContaining({
|
listContributionLinks: {
|
||||||
id: expect.any(Number),
|
count: 0,
|
||||||
amount: '200',
|
links: [],
|
||||||
code: expect.stringMatching(/^[0-9a-f]{24,24}$/),
|
},
|
||||||
link: expect.stringMatching(/^.*?\/CL-[0-9a-f]{24,24}$/),
|
|
||||||
createdAt: expect.any(String),
|
|
||||||
name: 'Dokumenta 2022',
|
|
||||||
memo: 'Danke für deine Teilnahme an der Dokumenta 2022',
|
|
||||||
validFrom: expect.any(String),
|
|
||||||
validTo: expect.any(String),
|
|
||||||
maxAmountPerMonth: '200',
|
|
||||||
cycle: 'once',
|
|
||||||
maxPerCycle: 1,
|
|
||||||
}),
|
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user