Skip to content

Commit 4312dd1

Browse files
committed
test: add e2e tests for server option
1 parent 53a46dc commit 4312dd1

File tree

6 files changed

+2736
-4
lines changed

6 files changed

+2736
-4
lines changed

lib/Server.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -744,9 +744,6 @@ class Server {
744744
server.options.cert = server.options.cert || fakeCert;
745745
}
746746

747-
console.log(options.server);
748-
749-
process.exit(0);
750747
if (typeof options.ipc === "boolean") {
751748
const isWindows = process.platform === "win32";
752749
const pipePrefix = isWindows ? "\\\\.\\pipe\\" : os.tmpdir();

test/cli/server-option.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const path = require("path");
44
const del = require("del");
55
const Server = require("../../lib/Server");
66
const { testBin, normalizeStderr } = require("../helpers/test-bin");
7-
const port = require("../ports-map")["cli-https"];
7+
const port = require("../ports-map")["cli-server"];
88

99
const httpsCertificateDirectory = path.resolve(
1010
__dirname,

0 commit comments

Comments
 (0)