Skip to content

Commit 9020c23

Browse files
committed
refactor: resolve TODOs
1 parent 13e74bb commit 9020c23

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

bin/cli-flags.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ module.exports = {
102102
describe: 'Enable gzip compression',
103103
group: RESPONSE_GROUP,
104104
},
105-
// findPort is currently not set up
106105
{
107106
name: 'port',
108107
type: Number,

test/client/utils/__snapshots__/createSocketUrl.test.js.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
exports[`createSocketUrl should return the url when __resourceQuery is ?test 1`] = `"/ws"`;
44

5+
exports[`createSocketUrl should return the url when __resourceQuery is file://filename 1`] = `"file://filename/ws"`;
6+
57
exports[`createSocketUrl should return the url when __resourceQuery is http://0.0.0.0 1`] = `"http://localhost/ws"`;
68

79
exports[`createSocketUrl should return the url when __resourceQuery is http://127.0.0.1 1`] = `"http://127.0.0.1/ws"`;
@@ -22,6 +24,8 @@ exports[`createSocketUrl should return the url when __resourceQuery is undefined
2224

2325
exports[`createSocketUrl should return the url when the current script source is ?test 1`] = `"/ws"`;
2426

27+
exports[`createSocketUrl should return the url when the current script source is file://filename 1`] = `"file://filename/ws"`;
28+
2529
exports[`createSocketUrl should return the url when the current script source is http://0.0.0.0 1`] = `"http://localhost/ws"`;
2630

2731
exports[`createSocketUrl should return the url when the current script source is http://127.0.0.1 1`] = `"http://127.0.0.1/ws"`;

test/client/utils/createSocketUrl.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ describe('createSocketUrl', () => {
1111
'https://localhost:123',
1212
'http://user:pass@[::]:8080',
1313
'http://127.0.0.1',
14-
// TODO: comment out after the major release
15-
// https://github.com/webpack/webpack-dev-server/pull/1954#issuecomment-498043376
16-
// 'file://filename',
14+
'file://filename',
1715
// eslint-disable-next-line no-undefined
1816
undefined,
1917
];

0 commit comments

Comments
 (0)