Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chdb",
"version": "1.5.0",
"version": "1.6.0",
"description": "chDB bindings for nodejs",
"main": "index.js",
"repository": {
Expand Down
7 changes: 3 additions & 4 deletions test_basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down