Skip to content

Commit

Permalink
fix(node/os): implement os.hostname()
Browse files Browse the repository at this point in the history
Refs #1436.
  • Loading branch information
bnoordhuis committed Nov 24, 2021
1 parent 68ab200 commit 653973a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion node/os.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export function homedir(): string | null {

/** Returns the host name of the operating system as a string. */
export function hostname(): string {
notImplemented(SEE_GITHUB_ISSUE);
return Deno.hostname();
}

/** Returns an array containing the 1, 5, and 15 minute load averages */
Expand Down
1 change: 0 additions & 1 deletion node/os_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ Deno.test({

Deno.test({
name: "hostname is a string",
ignore: true,
fn() {
assertEquals(typeof os.hostname(), "string");
},
Expand Down

0 comments on commit 653973a

Please sign in to comment.