fix JS tests

This commit is contained in:
Nikita Sivukhin
2025-11-06 18:02:09 +04:00
parent 7294ef347f
commit b547f3a25a
2 changed files with 2 additions and 2 deletions

View File

@@ -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', () => {

View File

@@ -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 () => {