@@ -48,7 +48,7 @@ describe('SockJSServer', () => {
48
48
socketServer . send ( connection , 'hello world' ) ;
49
49
setTimeout ( ( ) => {
50
50
// the server closes the connection with the client
51
- socketServer . close ( connection ) ;
51
+ socketServer . closeConnection ( connection ) ;
52
52
} , 1000 ) ;
53
53
} ) ;
54
54
@@ -97,7 +97,7 @@ describe('SockJSServer', () => {
97
97
socketServer . onConnection ( cb ) ;
98
98
99
99
expect ( ( ) => {
100
- socketServer . socket . emit ( 'connection' , null ) ;
100
+ socketServer . implementation . emit ( 'connection' , null ) ;
101
101
} ) . not . toThrow ( ) ;
102
102
expect ( cb . mock . calls [ 0 ] ) . toEqual ( [ null , null ] ) ;
103
103
} ) ;
@@ -149,7 +149,7 @@ describe('SockJSServer', () => {
149
149
socketServer . send ( connection , 'hello world' ) ;
150
150
setTimeout ( ( ) => {
151
151
// the server closes the connection with the client
152
- socketServer . close ( connection ) ;
152
+ socketServer . closeConnection ( connection ) ;
153
153
} , 1000 ) ;
154
154
} ) ;
155
155
@@ -198,7 +198,7 @@ describe('SockJSServer', () => {
198
198
socketServer . onConnection ( cb ) ;
199
199
200
200
expect ( ( ) => {
201
- socketServer . socket . emit ( 'connection' , null ) ;
201
+ socketServer . implementation . emit ( 'connection' , null ) ;
202
202
} ) . not . toThrow ( ) ;
203
203
expect ( cb . mock . calls [ 0 ] ) . toEqual ( [ null , null ] ) ;
204
204
} ) ;
0 commit comments