mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix: Await Resolved Promises in Backend Unit Tests
This commit is contained in:
parent
499ff7b613
commit
5cf2b61388
@ -48,7 +48,7 @@ describe('CommunityResolver', () => {
|
||||
|
||||
describe('getCommunityInfo', () => {
|
||||
it('returns the default values', async () => {
|
||||
expect(query({ query: getCommunityInfoQuery })).resolves.toMatchObject({
|
||||
await expect(query({ query: getCommunityInfoQuery })).resolves.toMatchObject({
|
||||
data: {
|
||||
getCommunityInfo: {
|
||||
name: 'Gradido Entwicklung',
|
||||
@ -68,7 +68,7 @@ describe('CommunityResolver', () => {
|
||||
})
|
||||
|
||||
it('returns three communities', async () => {
|
||||
expect(query({ query: communities })).resolves.toMatchObject({
|
||||
await expect(query({ query: communities })).resolves.toMatchObject({
|
||||
data: {
|
||||
communities: [
|
||||
{
|
||||
@ -104,7 +104,7 @@ describe('CommunityResolver', () => {
|
||||
})
|
||||
|
||||
it('returns one community', async () => {
|
||||
expect(query({ query: communities })).resolves.toMatchObject({
|
||||
await expect(query({ query: communities })).resolves.toMatchObject({
|
||||
data: {
|
||||
communities: [
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user