mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
12 lines
356 B
TypeScript
12 lines
356 B
TypeScript
import { assertEquals } from '@std/assert';
|
|
|
|
import { DittoRoute } from './DittoRoute.ts';
|
|
|
|
Deno.test('DittoRoute', async () => {
|
|
const route = new DittoRoute();
|
|
const response = await route.request('/');
|
|
const body = await response.json();
|
|
|
|
assertEquals(response.status, 500);
|
|
assertEquals(body, { error: 'Missing required variable: db' });
|
|
});
|