Skip to content

Commit

Permalink
test: add e2e tests for server option
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Oct 18, 2021
1 parent 4703dce commit 43ec088
Show file tree
Hide file tree
Showing 6 changed files with 2,736 additions and 4 deletions.
3 changes: 0 additions & 3 deletions lib/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -744,9 +744,6 @@ class Server {
server.options.cert = server.options.cert || fakeCert;
}

console.log(options.server);

process.exit(0);
if (typeof options.ipc === "boolean") {
const isWindows = process.platform === "win32";
const pipePrefix = isWindows ? "\\\\.\\pipe\\" : os.tmpdir();
Expand Down
2 changes: 1 addition & 1 deletion test/cli/server-option.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require("path");
const del = require("del");
const Server = require("../../lib/Server");
const { testBin, normalizeStderr } = require("../helpers/test-bin");
const port = require("../ports-map")["cli-https"];
const port = require("../ports-map")["cli-server"];

const httpsCertificateDirectory = path.resolve(
__dirname,
Expand Down

0 comments on commit 43ec088

Please sign in to comment.