Add Nostr AI tools

This commit is contained in:
Alex Gleason committed 2025-08-28 14:12:16 -05:00
1 parent 3fe2c8e9db
commit 027c4f4fd2
19 files changed
+1671

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import { describe, it, expect } from 'vitest';
import { HTTPError } from './HTTPError.ts';
describe('HTTPError', () => {
it('should create HTTPError with correct properties', () => {
const request = new Request('https://example.com/api');
const response = new Response('Not Found', { status: 404 });
const error = new HTTPError(response, request);
expect(error.name).toBe('HTTPError');
expect(error.message).toBe('HTTP Error: 404 GET https://example.com/api');
expect(error.response).toBe(response);
expect(error.request).toBe(request);
});
});