Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
camillobruni committed Jan 23, 2025
1 parent 2cee788 commit fcbd3e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/server.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Simple server adapted from https://developer.mozilla.org/en-US/docs/Learn/Server-side/Node_server_without_framework:
// Simple server for local testing.

import * as path from "path";
import commandLineArgs from "command-line-args";
import esMain from "es-main";
Expand Down Expand Up @@ -27,7 +28,7 @@ export default async function serve(port) {

function main() {
const optionDefinitions = [
{ name: "port", type: Number, defaultValue: 8080, description: "Set the test-server port, The default value is 8010." },
{ name: "port", type: Number, defaultValue: 8080, description: "Set the test-server port, The default value is 8080." },
];
const options = commandLineArgs(optionDefinitions);
serve(options.port);
Expand Down

0 comments on commit fcbd3e5

Please sign in to comment.