Skip to content

Commit ecec7e7

Browse files
committed
fix: update message type in tests to match MessageType enum
- Changed 'EVENT' to 'event' in server.test.ts to match the MessageType type definition
1 parent fbfaa6e commit ecec7e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/__tests__/server.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ describe('NostrWSServer', () => {
118118

119119
it('should handle message events', async () => {
120120
const message: NostrWSMessage = {
121-
type: 'EVENT',
121+
type: 'event',
122122
data: { id: '123', kind: 1, content: 'test', created_at: 123, pubkey: 'abc', sig: 'def', tags: [] },
123123
};
124124
const messageData = Buffer.from(JSON.stringify(message));

0 commit comments

Comments
 (0)