fix nip-42 test `await`.

This commit is contained in:
fiatjaf 2023-12-21 08:55:55 -03:00
parent bf3818e434
commit a9acdada19
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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",