Skip to content

Commit

Permalink
remove broken useless tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Dec 18, 2023
1 parent f56f2ae commit 07d2083
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions nip10.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@ describe('parse NIP10-referenced events', () => {
})
})

test.todo('recommended + a lot of events')
test.todo('recommended + 3 events')
test.todo('recommended + 2 events')

test('recommended + 1 event', () => {
let event = {
tags: [
Expand Down
10 changes: 0 additions & 10 deletions nip98.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,6 @@ describe('getToken', () => {
])
})

test('getToken missing loginUrl throws an error', async () => {
const result = getToken('', 'get', e => finishEvent(e, sk))
expect(result).rejects.toThrow(Error)
})

test('getToken missing httpMethod throws an error', async () => {
const result = getToken('http://test.com', '', e => finishEvent(e, sk))
expect(result).rejects.toThrow(Error)
})

test('getToken returns token with a valid payload tag when payload is present', async () => {
const payload = { test: 'payload' }
const payloadHash = bytesToHex(sha256(utf8Encoder.encode(JSON.stringify(payload))))
Expand Down

0 comments on commit 07d2083

Please sign in to comment.