add comments and small test adjustments

This commit is contained in:
Nikita Sivukhin
2025-09-25 10:52:18 +04:00
parent d08bcb6a17
commit 6fe5a0b61e
8 changed files with 38 additions and 11 deletions

View File

@@ -61,7 +61,7 @@ test('explicit connect', async () => {
const db = new Database(':memory:');
expect(() => db.prepare("SELECT 1")).toThrowError(/database must be connected/g);
await db.connect();
db.prepare("SELECT 1");
expect(await db.prepare("SELECT 1 as x").all()).toEqual([{ x: 1 }]);
})
test('on-disk db', async () => {