test: add unit test for factories

This commit is contained in:
Ricardo Arturo Cabral Mejía
2022-11-10 23:14:41 -05:00
parent 9cea3bec4e
commit e50b4952b6
11 changed files with 279 additions and 12 deletions

View File

@@ -21,7 +21,7 @@ describe('NIP-01', () => {
const event: Partial<Event> = {
pubkey: 'pubkey',
created_at: 1000,
kind: EventKinds.TEXT_NODE,
kind: EventKinds.TEXT_NOTE,
tags: [['tag name', 'tag content']],
content: 'content',
}
@@ -30,7 +30,7 @@ describe('NIP-01', () => {
0,
'pubkey',
1000,
EventKinds.TEXT_NODE,
EventKinds.TEXT_NOTE,
[['tag name', 'tag content']],
'content',
]