Skip to content

Commit 8ed8d6b

Browse files
committed
test: update
1 parent 1dde16c commit 8ed8d6b

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

test/server/utils/__snapshots__/normalizeOptions.test.js.snap.webpack4

+14-4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Object {
66
"client": Object {
77
"hotEntry": true,
88
"overlay": true,
9+
"webSocketURL": Object {},
910
},
1011
"compress": true,
1112
"devMiddleware": Object {},
@@ -41,6 +42,7 @@ Object {
4142
"hotEntry": true,
4243
"overlay": true,
4344
"transport": "/path/to/custom/client/",
45+
"webSocketURL": Object {},
4446
},
4547
"compress": true,
4648
"devMiddleware": Object {},
@@ -73,10 +75,12 @@ exports[`normalizeOptions client host and port should set correct options 1`] =
7375
Object {
7476
"allowedHosts": false,
7577
"client": Object {
76-
"host": "my.host",
7778
"hotEntry": true,
7879
"overlay": true,
79-
"port": 9000,
80+
"webSocketURL": Object {
81+
"host": "my.host",
82+
"port": 9000,
83+
},
8084
},
8185
"compress": true,
8286
"devMiddleware": Object {},
@@ -111,7 +115,9 @@ Object {
111115
"client": Object {
112116
"hotEntry": true,
113117
"overlay": true,
114-
"path": "/custom/path/",
118+
"webSocketURL": Object {
119+
"path": "/custom/path/",
120+
},
115121
},
116122
"compress": true,
117123
"devMiddleware": Object {},
@@ -146,7 +152,9 @@ Object {
146152
"client": Object {
147153
"hotEntry": true,
148154
"overlay": true,
149-
"path": "custom/path",
155+
"webSocketURL": Object {
156+
"path": "custom/path",
157+
},
150158
},
151159
"compress": true,
152160
"devMiddleware": Object {},
@@ -182,6 +190,7 @@ Object {
182190
"hotEntry": true,
183191
"overlay": true,
184192
"transport": "sockjs",
193+
"webSocketURL": Object {},
185194
},
186195
"compress": true,
187196
"devMiddleware": Object {},
@@ -253,6 +262,7 @@ Object {
253262
"hotEntry": true,
254263
"overlay": true,
255264
"transport": "ws",
265+
"webSocketURL": Object {},
256266
},
257267
"compress": true,
258268
"devMiddleware": Object {},

test/server/utils/__snapshots__/normalizeOptions.test.js.snap.webpack5

+14-4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Object {
66
"client": Object {
77
"hotEntry": true,
88
"overlay": true,
9+
"webSocketURL": Object {},
910
},
1011
"compress": true,
1112
"devMiddleware": Object {},
@@ -41,6 +42,7 @@ Object {
4142
"hotEntry": true,
4243
"overlay": true,
4344
"transport": "/path/to/custom/client/",
45+
"webSocketURL": Object {},
4446
},
4547
"compress": true,
4648
"devMiddleware": Object {},
@@ -73,10 +75,12 @@ exports[`normalizeOptions client host and port should set correct options 1`] =
7375
Object {
7476
"allowedHosts": false,
7577
"client": Object {
76-
"host": "my.host",
7778
"hotEntry": true,
7879
"overlay": true,
79-
"port": 9000,
80+
"webSocketURL": Object {
81+
"host": "my.host",
82+
"port": 9000,
83+
},
8084
},
8185
"compress": true,
8286
"devMiddleware": Object {},
@@ -111,7 +115,9 @@ Object {
111115
"client": Object {
112116
"hotEntry": true,
113117
"overlay": true,
114-
"path": "/custom/path/",
118+
"webSocketURL": Object {
119+
"path": "/custom/path/",
120+
},
115121
},
116122
"compress": true,
117123
"devMiddleware": Object {},
@@ -146,7 +152,9 @@ Object {
146152
"client": Object {
147153
"hotEntry": true,
148154
"overlay": true,
149-
"path": "custom/path",
155+
"webSocketURL": Object {
156+
"path": "custom/path",
157+
},
150158
},
151159
"compress": true,
152160
"devMiddleware": Object {},
@@ -182,6 +190,7 @@ Object {
182190
"hotEntry": true,
183191
"overlay": true,
184192
"transport": "sockjs",
193+
"webSocketURL": Object {},
185194
},
186195
"compress": true,
187196
"devMiddleware": Object {},
@@ -253,6 +262,7 @@ Object {
253262
"hotEntry": true,
254263
"overlay": true,
255264
"transport": "ws",
265+
"webSocketURL": Object {},
256266
},
257267
"compress": true,
258268
"devMiddleware": Object {},

0 commit comments

Comments
 (0)