fix nip-42 test `await`.
This commit is contained in:
parent
bf3818e434
commit
a9acdada19
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue