mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 16:48:50 +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 { makeAuthEvent } from './nip42.ts'
|
||||||
import { relayConnect } from './relay.ts'
|
import { relayConnect } from './relay.ts'
|
||||||
|
|
||||||
test('auth flow', () => {
|
test('auth flow', async () => {
|
||||||
const relay = relayConnect('wss://nostr.wine')
|
const relay = await relayConnect('wss://nostr.wine')
|
||||||
|
|
||||||
const auth = makeAuthEvent(relay.url, 'chachacha')
|
const auth = makeAuthEvent(relay.url, 'chachacha')
|
||||||
expect(auth.tags).toHaveLength(2)
|
expect(auth.tags).toHaveLength(2)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nostr-tools",
|
"name": "nostr-tools",
|
||||||
"version": "2.0.1",
|
"version": "2.0.2",
|
||||||
"description": "Tools for making a Nostr client.",
|
"description": "Tools for making a Nostr client.",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user