mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
14 lines
369 B
TypeScript
14 lines
369 B
TypeScript
import { assertEquals } from '@std/assert';
|
|
|
|
import { DittoPglite } from './DittoPglite.ts';
|
|
|
|
Deno.test('DittoPglite', async () => {
|
|
const db = new DittoPglite('memory://');
|
|
await db.migrate();
|
|
|
|
assertEquals(db.poolSize, 1);
|
|
assertEquals(db.availableConnections, 1);
|
|
|
|
await db.kysely.destroy();
|
|
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
});
|