call useWebSocketImplementation() on relay and pool tests.

This commit is contained in:
fiatjaf
2024-02-14 13:26:38 -03:00
parent 01f13292bb
commit 62e5730965
3 changed files with 11 additions and 4 deletions

View File

@@ -1,8 +1,10 @@
import { Server } from 'mock-socket'
import { Server, WebSocket } from 'mock-socket'
import { finalizeEvent, type Event, getPublicKey, generateSecretKey } from './pure.ts'
import { matchFilters, type Filter } from './filter.ts'
export const MockWebSocketClient = WebSocket
export function buildEvent(params: Partial<Event>): Event {
return {
id: '',