mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-23 03:04:19 +01:00
add comments and small test adjustments
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user