File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ const onSocketMessage = {
198
198
log . error ( error ) ;
199
199
} ,
200
200
close ( ) {
201
- log . error ( "Disconnected!" ) ;
201
+ log . info ( "Disconnected!" ) ;
202
202
203
203
sendMessage ( "Close" ) ;
204
204
} ,
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ describe("index", () => {
214
214
test ( "should run onSocketMessage.close" , ( ) => {
215
215
onSocketMessage . close ( ) ;
216
216
217
- expect ( log . log . error . mock . calls [ 0 ] [ 0 ] ) . toMatchSnapshot ( ) ;
217
+ expect ( log . log . info . mock . calls [ 0 ] [ 0 ] ) . toMatchSnapshot ( ) ;
218
218
expect ( sendMessage . mock . calls [ 0 ] [ 0 ] ) . toMatchSnapshot ( ) ;
219
219
} ) ;
220
220
@@ -223,7 +223,7 @@ describe("index", () => {
223
223
onSocketMessage . hot ( ) ;
224
224
onSocketMessage . close ( ) ;
225
225
226
- expect ( log . log . error . mock . calls [ 0 ] [ 0 ] ) . toMatchSnapshot ( ) ;
226
+ expect ( log . log . info . mock . calls [ 1 ] [ 0 ] ) . toMatchSnapshot ( ) ;
227
227
expect ( sendMessage . mock . calls [ 0 ] [ 0 ] ) . toMatchSnapshot ( ) ;
228
228
} ) ;
229
229
@@ -232,7 +232,7 @@ describe("index", () => {
232
232
onSocketMessage . liveReload ( ) ;
233
233
onSocketMessage . close ( ) ;
234
234
235
- expect ( log . log . error . mock . calls [ 0 ] [ 0 ] ) . toMatchSnapshot ( ) ;
235
+ expect ( log . log . info . mock . calls [ 1 ] [ 0 ] ) . toMatchSnapshot ( ) ;
236
236
expect ( sendMessage . mock . calls [ 0 ] [ 0 ] ) . toMatchSnapshot ( ) ;
237
237
} ) ;
238
238
You can’t perform that action at this time.
0 commit comments