Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Jul 1, 2021
1 parent 779137f commit ff217b2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.
8 changes: 0 additions & 8 deletions test/cli/__snapshots__/host-option.test.js.snap.webpack4
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ exports[`"host" CLI option should work using "--host local-ipv4": stderr 1`] = `
<i> [webpack-dev-server] Content not from webpack is served from '<cwd>/public' directory"
`;

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

exports[`"host" CLI option should work using "--host localhost": stderr 1`] = `
"<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: http://localhost:<port>/, http://127.0.0.1:<port>/
Expand Down
8 changes: 0 additions & 8 deletions test/cli/__snapshots__/host-option.test.js.snap.webpack5
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ exports[`"host" CLI option should work using "--host local-ipv4": stderr 1`] = `
<i> [webpack-dev-server] Content not from webpack is served from '<cwd>/public' directory"
`;

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

exports[`"host" CLI option should work using "--host localhost": stderr 1`] = `
"<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: http://localhost:<port>/, http://127.0.0.1:<port>/
Expand Down
12 changes: 0 additions & 12 deletions test/cli/host-option.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,4 @@ describe('"host" CLI option', () => {
expect(exitCode).toEqual(0);
expect(normalizeStderr(stderr)).toMatchSnapshot('stderr');
});

it('should work using "--host local-ipv6"', async () => {
const { exitCode, stderr } = await testBin([
'--port',
port,
'--host',
'local-ipv6',
]);

expect(exitCode).toEqual(0);
expect(normalizeStderr(stderr, { ipv6: true })).toMatchSnapshot('stderr');
});
});

0 comments on commit ff217b2

Please sign in to comment.