mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
improve test descriptions
This commit is contained in:
parent
17d2238da0
commit
64cf53974c
@ -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()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user