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

@@ -2,7 +2,10 @@ import { afterEach, beforeEach, expect, test } from 'bun:test'
import { SimplePool } from './pool.ts'
import { finalizeEvent, generateSecretKey, getPublicKey, type Event } from './pure.ts'
import { MockRelay } from './test-helpers.ts'
import { useWebSocketImplementation } from './relay.ts'
import { MockRelay, MockWebSocketClient } from './test-helpers.ts'
useWebSocketImplementation(MockWebSocketClient)
let pool: SimplePool
let mockRelays: MockRelay[]