mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
remove last remains of pool-pure.ts
This commit is contained in:
@@ -210,7 +210,7 @@ Importing the entirety of `nostr-tools` may bloat your build, so you should prob
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
import { generateSecretKey, finalizeEvent, verifyEvent } from 'nostr-tools/pure'
|
import { generateSecretKey, finalizeEvent, verifyEvent } from 'nostr-tools/pure'
|
||||||
import { SimplePool } from 'nostr-tools/pool-pure'
|
import { SimplePool } from 'nostr-tools/pool'
|
||||||
import { Relay, Subscription } from 'nostr-tools/relay'
|
import { Relay, Subscription } from 'nostr-tools/relay'
|
||||||
import { matchFilter } from 'nostr-tools/filter'
|
import { matchFilter } from 'nostr-tools/filter'
|
||||||
import { decode, nprofileEncode, neventEncode, npubEncode } from 'nostr-tools/nip19'
|
import { decode, nprofileEncode, neventEncode, npubEncode } from 'nostr-tools/nip19'
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { test, expect, afterAll } from 'bun:test'
|
|||||||
|
|
||||||
import { finalizeEvent, type Event } from './pure.ts'
|
import { finalizeEvent, type Event } from './pure.ts'
|
||||||
import { generateSecretKey, getPublicKey } from './pure.ts'
|
import { generateSecretKey, getPublicKey } from './pure.ts'
|
||||||
import SimplePool from './pool-pure.ts'
|
import { SimplePool } from './pool.ts'
|
||||||
|
|
||||||
let pool = new SimplePool()
|
let pool = new SimplePool()
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ test('connectivity', async () => {
|
|||||||
test('connectivity, with Relay.connect()', async () => {
|
test('connectivity, with Relay.connect()', async () => {
|
||||||
const relay = await Relay.connect('wss://public.relaying.io')
|
const relay = await Relay.connect('wss://public.relaying.io')
|
||||||
expect(relay.connected).toBeTrue()
|
expect(relay.connected).toBeTrue()
|
||||||
|
relay.close()
|
||||||
})
|
})
|
||||||
|
|
||||||
test('querying', async () => {
|
test('querying', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user