Skip to content

Commit 6fefc1d

Browse files
committed
Fix the expected response for the TEST ARRAY command in connection-ws.test.ts
1 parent 15f1122 commit 6fefc1d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/connection-ws.test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ describe('connection-ws', () => {
4242
expect(error).toBeNull()
4343
done()
4444
})
45+
connection?.close()
4546
})
4647

4748
it('should not connect with incorrect credentials', done => {
@@ -55,6 +56,7 @@ describe('connection-ws', () => {
5556
expect(error).toBeDefined()
5657
done()
5758
})
59+
connection?.close()
5860
})
5961
/* TODO RESTORE TEST
6062
it('should connect with connection string', done => {
@@ -212,10 +214,10 @@ describe('connection-ws', () => {
212214

213215
const arrayrowset = results as any as Array<any>
214216
expect(arrayrowset.length).toBe(5)
215-
expect(arrayrowset[0]).toBe('Hello World')
216-
expect(arrayrowset[1]).toBe(123456)
217-
expect(arrayrowset[2]).toBe(3.1415)
218-
expect(arrayrowset[3]).toBeNull()
217+
expect(arrayrowset[0].Result).toBe('Hello World')
218+
expect(arrayrowset[1].Result).toBe(123456)
219+
expect(arrayrowset[2].Result).toBe(3.1415)
220+
expect(arrayrowset[3].Result).toBeNull()
219221
done()
220222
})
221223
})

0 commit comments

Comments
 (0)