Skip to content

Commit f07abc1

Browse files
Add LIST METADATA test
1 parent 1b793d8 commit f07abc1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/connection.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,15 @@ describe('connection', () => {
328328
})
329329

330330
describe('send select commands', () => {
331+
it('should LIST METADATA', done => {
332+
chinook.sendCommands('LIST METADATA;', (error, results) => {
333+
expect(error).toBeNull()
334+
expect(results.numberOfColumns).toBe(8)
335+
expect(results.numberOfRows).toBe(64)
336+
done()
337+
})
338+
})
339+
331340
it('should select results with no colum names', done => {
332341
chinook.sendCommands("select 42, 'hello'", (error, results) => {
333342
expect(error).toBeNull()

0 commit comments

Comments
 (0)