diff --git a/bindings/javascript/packages/native/compat.test.ts b/bindings/javascript/packages/native/compat.test.ts index d56b4abdd..3da504f86 100644 --- a/bindings/javascript/packages/native/compat.test.ts +++ b/bindings/javascript/packages/native/compat.test.ts @@ -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', () => { diff --git a/bindings/javascript/packages/native/promise.test.ts b/bindings/javascript/packages/native/promise.test.ts index 9defc1d7c..af22eb632 100644 --- a/bindings/javascript/packages/native/promise.test.ts +++ b/bindings/javascript/packages/native/promise.test.ts @@ -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 () => {