File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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 } )
You can’t perform that action at this time.
0 commit comments