test(event): add test for getBlankEvent

This commit is contained in:
eosxx
2023-05-01 18:42:14 +00:00
committed by fiatjaf_
parent 595ae21baf
commit 87f5ea4291

View File

@@ -20,6 +20,15 @@ describe('Event', () => {
created_at: 0
})
})
it('should return a blank event object with defined kind', () => {
expect(getBlankEvent(Kind.Text)).toEqual({
kind: 1,
content: '',
tags: [],
created_at: 0
})
})
})
describe('finishEvent', () => {