diff --git a/nip42.test.ts b/nip42.test.ts index ff1f277..374b638 100644 --- a/nip42.test.ts +++ b/nip42.test.ts @@ -3,8 +3,8 @@ import { test, expect } from 'bun:test' import { makeAuthEvent } from './nip42.ts' import { relayConnect } from './relay.ts' -test('auth flow', () => { - const relay = relayConnect('wss://nostr.wine') +test('auth flow', async () => { + const relay = await relayConnect('wss://nostr.wine') const auth = makeAuthEvent(relay.url, 'chachacha') expect(auth.tags).toHaveLength(2) diff --git a/package.json b/package.json index 11013d2..a12dcaa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nostr-tools", - "version": "2.0.1", + "version": "2.0.2", "description": "Tools for making a Nostr client.", "repository": { "type": "git",