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