This commit is contained in:
Ulf Gebhardt 2023-03-09 15:18:31 +01:00
parent 57008e3355
commit 4d19ce06b5
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -42,15 +42,13 @@ describe('PublicKeyResolver', () => {
})
it('returns homeCommunity-publicKey', async () => {
await expect(query({ query: getPublicKeyQuery })).resolves.toContainEqual(
expect.objectContaining({
data: {
getPublicKey: {
publicKey: 'homeCommunity-publicKey',
},
await expect(query({ query: getPublicKeyQuery })).resolves.toMatchObject({
data: {
getPublicKey: {
publicKey: expect.stringMatching('homeCommunity-publicKey'),
},
})
)
},
})
})
})
})