mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
fix nip-42 test await.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user