Skip to content

Commit ff217b2

Browse files
test: fix
1 parent 779137f commit ff217b2

File tree

3 files changed

+0
-28
lines changed

3 files changed

+0
-28
lines changed

test/cli/__snapshots__/host-option.test.js.snap.webpack4

-8
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,6 @@ exports[`"host" CLI option should work using "--host local-ipv4": stderr 1`] = `
5252
<i> [webpack-dev-server] Content not from webpack is served from '<cwd>/public' directory"
5353
`;
5454

55-
exports[`"host" CLI option should work using "--host local-ipv6": stderr 1`] = `
56-
"<i> [webpack-dev-server] Project is running at:
57-
<i> [webpack-dev-server] Loopback: http://localhost:<port>/
58-
<i> [webpack-dev-server] On Your Network (IPv4): http://<network-ip-v4>:<port>/
59-
<i> [webpack-dev-server] On Your Network (IPv6): http://[<network-ip-v6>]:<port>/
60-
<i> [webpack-dev-server] Content not from webpack is served from '<cwd>/public' directory"
61-
`;
62-
6355
exports[`"host" CLI option should work using "--host localhost": stderr 1`] = `
6456
"<i> [webpack-dev-server] Project is running at:
6557
<i> [webpack-dev-server] Loopback: http://localhost:<port>/, http://127.0.0.1:<port>/

test/cli/__snapshots__/host-option.test.js.snap.webpack5

-8
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,6 @@ exports[`"host" CLI option should work using "--host local-ipv4": stderr 1`] = `
5252
<i> [webpack-dev-server] Content not from webpack is served from '<cwd>/public' directory"
5353
`;
5454

55-
exports[`"host" CLI option should work using "--host local-ipv6": stderr 1`] = `
56-
"<i> [webpack-dev-server] Project is running at:
57-
<i> [webpack-dev-server] Loopback: http://localhost:<port>/
58-
<i> [webpack-dev-server] On Your Network (IPv4): http://<network-ip-v4>:<port>/
59-
<i> [webpack-dev-server] On Your Network (IPv6): http://[<network-ip-v6>]:<port>/
60-
<i> [webpack-dev-server] Content not from webpack is served from '<cwd>/public' directory"
61-
`;
62-
6355
exports[`"host" CLI option should work using "--host localhost": stderr 1`] = `
6456
"<i> [webpack-dev-server] Project is running at:
6557
<i> [webpack-dev-server] Loopback: http://localhost:<port>/, http://127.0.0.1:<port>/

test/cli/host-option.test.js

-12
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,4 @@ describe('"host" CLI option', () => {
127127
expect(exitCode).toEqual(0);
128128
expect(normalizeStderr(stderr)).toMatchSnapshot('stderr');
129129
});
130-
131-
it('should work using "--host local-ipv6"', async () => {
132-
const { exitCode, stderr } = await testBin([
133-
'--port',
134-
port,
135-
'--host',
136-
'local-ipv6',
137-
]);
138-
139-
expect(exitCode).toEqual(0);
140-
expect(normalizeStderr(stderr, { ipv6: true })).toMatchSnapshot('stderr');
141-
});
142130
});

0 commit comments

Comments
 (0)