mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-13 10:28:51 +00:00
test(event): add test for getBlankEvent
This commit is contained in:
@@ -20,6 +20,15 @@ describe('Event', () => {
|
|||||||
created_at: 0
|
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', () => {
|
describe('finishEvent', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user