mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
15 lines
303 B
TypeScript
15 lines
303 B
TypeScript
import { assertRejects } from '@std/assert';
|
|
|
|
import { DittoRoute } from './DittoRoute.ts';
|
|
|
|
Deno.test('DittoRoute', async () => {
|
|
const route = new DittoRoute();
|
|
|
|
await assertRejects(
|
|
async () => {
|
|
await route.request('/');
|
|
},
|
|
Error,
|
|
'Missing required variable: db',
|
|
);
|
|
});
|