From 07d208308f42f869fe70cf47a1e0eba3af77a31d Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sun, 17 Dec 2023 22:41:22 -0300 Subject: [PATCH] remove broken useless tests. --- nip10.test.ts | 4 ---- nip98.test.ts | 10 ---------- 2 files changed, 14 deletions(-) diff --git a/nip10.test.ts b/nip10.test.ts index 68f79bc..7d7ff6d 100644 --- a/nip10.test.ts +++ b/nip10.test.ts @@ -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: [ diff --git a/nip98.test.ts b/nip98.test.ts index 829767f..db7944b 100644 --- a/nip98.test.ts +++ b/nip98.test.ts @@ -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))))