mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
fix prettier checks on nip77 related *ts files
This commit is contained in:
@@ -28,10 +28,7 @@ function extractJSON(message: string) {
|
||||
describe('nip77 negentropy message helpers', () => {
|
||||
it('sendNegentropyMessage should send NEG-MSG with generated subscription id and filters flattened', () => {
|
||||
const relay = new MockRelay()
|
||||
const filters: Filter[] = [
|
||||
{ kinds: [1], authors: ['abc'] },
|
||||
{ ids: ['deadbeef'] },
|
||||
]
|
||||
const filters: Filter[] = [{ kinds: [1], authors: ['abc'] }, { ids: ['deadbeef'] }]
|
||||
sendNegentropyMessage(relay as any, 'hello', filters)
|
||||
|
||||
expect(relay.sent.length).toBe(1)
|
||||
|
||||
Reference in New Issue
Block a user