mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge pull request #1079 from gradido/await-backaned-tests
fix: Await Resolved Promises in Backend Unit Tests
This commit is contained in:
commit
9745433e4c
@ -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