diff --git a/package-lock.json b/package-lock.json index fd9d1dd..fd70d34 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "chdb", - "version": "1.5.0", + "version": "1.6.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "chdb", - "version": "1.5.0", + "version": "1.6.0", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { diff --git a/package.json b/package.json index a4822bb..e0f2589 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chdb", - "version": "1.5.0", + "version": "1.6.0", "description": "chDB bindings for nodejs", "main": "index.js", "repository": { diff --git a/test_basic.js b/test_basic.js index 9858a8b..1341ff9 100644 --- a/test_basic.js +++ b/test_basic.js @@ -10,10 +10,9 @@ describe('chDB Queries', function () { expect(ret).to.include('Hello chDB'); }); - it('should throw an error when querying a non-existent table', function () { - expect(() => { - query("SELECT * FROM non_existent_table;", "CSV"); - }).to.throw(Error, /Unknown table expression identifier/); + it('should return empty string when querying a non-existent table', function () { + const ret = query("SELECT * FROM non_existent_table;", "CSV"); + expect(ret).to.equal(''); }); it('should return version, greeting message, and chDB() using bind query', () => {