Skip to content

Commit

Permalink
Fix the expected response for the TEST ARRAY command in connection-ws…
Browse files Browse the repository at this point in the history
….test.ts
  • Loading branch information
andinux committed Mar 1, 2024
1 parent 15f1122 commit 6fefc1d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/connection-ws.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ describe('connection-ws', () => {
expect(error).toBeNull()
done()
})
connection?.close()
})

it('should not connect with incorrect credentials', done => {
Expand All @@ -55,6 +56,7 @@ describe('connection-ws', () => {
expect(error).toBeDefined()
done()
})
connection?.close()
})
/* TODO RESTORE TEST
it('should connect with connection string', done => {
Expand Down Expand Up @@ -212,10 +214,10 @@ describe('connection-ws', () => {

const arrayrowset = results as any as Array<any>
expect(arrayrowset.length).toBe(5)
expect(arrayrowset[0]).toBe('Hello World')
expect(arrayrowset[1]).toBe(123456)
expect(arrayrowset[2]).toBe(3.1415)
expect(arrayrowset[3]).toBeNull()
expect(arrayrowset[0].Result).toBe('Hello World')
expect(arrayrowset[1].Result).toBe(123456)
expect(arrayrowset[2].Result).toBe(3.1415)
expect(arrayrowset[3].Result).toBeNull()
done()
})
})
Expand Down

0 comments on commit 6fefc1d

Please sign in to comment.