Skip to content

Commit f425da0

Browse files
committed
test: fix tests
1 parent f309798 commit f425da0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/unit/handlers/delegated-event-message-handler.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import chai from 'chai'
22
import chaiAsPromised from 'chai-as-promised'
33
import EventEmitter from 'events'
44
import Sinon from 'sinon'
5+
import sinonChai from 'sinon-chai'
56

7+
chai.use(sinonChai)
68
chai.use(chaiAsPromised)
79

810
import { IncomingEventMessage, MessageType } from '../../../src/@types/messages'

test/unit/utils/event.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ import { EventKinds } from '../../../src/constants/base'
1818
describe('NIP-01', () => {
1919
describe('serializeEvent', () => {
2020
it('returns serialized event given a Nostr event', () => {
21-
const event: Partial<Event> = {
21+
const event: Event = {
2222
pubkey: 'pubkey',
2323
created_at: 1000,
2424
kind: EventKinds.TEXT_NOTE,
2525
tags: [['tag name', 'tag content']],
2626
content: 'content',
27-
}
27+
} as any
2828

2929
const expected: CanonicalEvent = [
3030
0,

0 commit comments

Comments
 (0)