Skip to content

Commit

Permalink
fix nip-42 test await.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Dec 21, 2023
1 parent bf3818e commit a9acdad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nip42.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit a9acdad

Please sign in to comment.