From 64cf53974c7bf198f9c11dbb1fc1f49e17b1def4 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Tue, 20 Dec 2022 20:08:24 +0100 Subject: [PATCH] improve test descriptions --- backend/src/federation/index.test.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/backend/src/federation/index.test.ts b/backend/src/federation/index.test.ts index fa742cc86..83cb6d7a4 100644 --- a/backend/src/federation/index.test.ts +++ b/backend/src/federation/index.test.ts @@ -169,12 +169,7 @@ describe('federation', () => { describe('socket events', () => { describe('on data', () => { - it('can be triggered', () => { - socketEventMocks.data(Buffer.from('some-data')) - expect(true).toBe(true) - }) - - describe('on data with receiving simply a string', () => { + describe('with receiving simply a string', () => { beforeEach(() => { jest.clearAllMocks() socketEventMocks.data(Buffer.from('no-json')) @@ -192,7 +187,7 @@ describe('federation', () => { }) }) - describe('on data with proper data', () => { + describe('with proper data', () => { let result: DbCommunity[] = [] beforeAll(async () => { jest.clearAllMocks()