mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
16 lines
359 B
TypeScript
16 lines
359 B
TypeScript
import { Hono } from '@hono/hono';
|
|
|
|
import { DittoApp } from './DittoApp.ts';
|
|
import { DittoRoute } from './DittoRoute.ts';
|
|
|
|
Deno.test('DittoApp', () => {
|
|
const app = new DittoApp();
|
|
|
|
const hono = new Hono();
|
|
const route = new DittoRoute();
|
|
|
|
app.route('/', route);
|
|
|
|
// @ts-expect-error Passing a non-DittoRoute to route.
|
|
app.route('/', hono);
|
|
});
|