File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -65,37 +65,37 @@ describe('logging', () => {
65
65
webSocketServerTypesLog . forEach ( ( mode ) => {
66
66
cases . forEach ( ( { title, options } ) => {
67
67
title += ` (${
68
- Object . keys ( mode ) . length ? mode . webSocketServer : 'default'
68
+ Object . keys ( mode ) . length ? mode . webSocketServer : 'default'
69
69
} )`;
70
70
71
71
options = { ...mode , ...options } ;
72
72
73
73
it ( title , async ( ) => {
74
74
const compiler = webpack ( config ) ;
75
75
const devServerOptions = Object . assign (
76
- { } ,
77
- {
78
- host : '0.0.0.0' ,
79
- port,
80
- static : false ,
81
- } ,
82
- options
76
+ { } ,
77
+ {
78
+ host : '0.0.0.0' ,
79
+ port,
80
+ static : false ,
81
+ } ,
82
+ options
83
83
) ;
84
84
const server = new Server ( devServerOptions , compiler ) ;
85
85
86
86
await new Promise ( ( resolve , reject ) => {
87
87
server . listen (
88
- devServerOptions . port ,
89
- devServerOptions . host ,
90
- ( error ) => {
91
- if ( error ) {
92
- reject ( error ) ;
88
+ devServerOptions . port ,
89
+ devServerOptions . host ,
90
+ ( error ) => {
91
+ if ( error ) {
92
+ reject ( error ) ;
93
93
94
- return ;
95
- }
94
+ return ;
95
+ }
96
96
97
- resolve ( ) ;
98
- }
97
+ resolve ( ) ;
98
+ }
99
99
) ;
100
100
} ) ;
101
101
@@ -114,7 +114,7 @@ describe('logging', () => {
114
114
await browser . close ( ) ;
115
115
116
116
expect (
117
- consoleMessages . map ( ( message ) => message . text ( ) )
117
+ consoleMessages . map ( ( message ) => message . text ( ) )
118
118
) . toMatchSnapshot ( ) ;
119
119
120
120
await new Promise ( ( resolve ) => {
You can’t perform that action at this time.
0 commit comments