Skip to content

Commit 01ec8ff

Browse files
committed
Fix tests
1 parent cfbd91f commit 01ec8ff

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test_basic.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ describe('chDB Queries', function () {
1010
expect(ret).to.include('Hello chDB');
1111
});
1212

13-
it('should throw an error when querying a non-existent table', function () {
14-
expect(() => {
15-
query("SELECT * FROM non_existent_table;", "CSV");
16-
}).to.throw(Error, /Unknown table expression identifier/);
13+
it('should return empty string when querying a non-existent table', function () {
14+
const ret = query("SELECT * FROM non_existent_table;", "CSV");
15+
expect(ret).to.equal('');
1716
});
1817

1918
it('should return version, greeting message, and chDB() using bind query', () => {

0 commit comments

Comments
 (0)