mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-14 21:54:23 +01:00
fix JS tests
This commit is contained in:
@@ -42,7 +42,7 @@ test('readonly-db', () => {
|
||||
|
||||
test('file-must-exist', () => {
|
||||
const path = `test-${(Math.random() * 10000) | 0}.db`;
|
||||
expect(() => new Database(path, { fileMustExist: true })).toThrowError(/failed to open file/);
|
||||
expect(() => new Database(path, { fileMustExist: true })).toThrowError(/failed to open database/);
|
||||
})
|
||||
|
||||
test('on-disk db', () => {
|
||||
|
||||
@@ -62,7 +62,7 @@ test('readonly-db', async () => {
|
||||
|
||||
test('file-must-exist', async () => {
|
||||
const path = `test-${(Math.random() * 10000) | 0}.db`;
|
||||
await expect(async () => await connect(path, { fileMustExist: true })).rejects.toThrowError(/failed to open file/);
|
||||
await expect(async () => await connect(path, { fileMustExist: true })).rejects.toThrowError(/failed to open database/);
|
||||
})
|
||||
|
||||
test('implicit connect', async () => {
|
||||
|
||||
Reference in New Issue
Block a user