improve test descriptions

This commit is contained in:
Moriz Wahl 2022-12-20 20:08:24 +01:00
parent 17d2238da0
commit 64cf53974c

View File

@ -169,12 +169,7 @@ describe('federation', () => {
describe('socket events', () => { describe('socket events', () => {
describe('on data', () => { describe('on data', () => {
it('can be triggered', () => { describe('with receiving simply a string', () => {
socketEventMocks.data(Buffer.from('some-data'))
expect(true).toBe(true)
})
describe('on data with receiving simply a string', () => {
beforeEach(() => { beforeEach(() => {
jest.clearAllMocks() jest.clearAllMocks()
socketEventMocks.data(Buffer.from('no-json')) 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[] = [] let result: DbCommunity[] = []
beforeAll(async () => { beforeAll(async () => {
jest.clearAllMocks() jest.clearAllMocks()