summaryrefslogtreecommitdiff
path: root/std/node
diff options
context:
space:
mode:
Diffstat (limited to 'std/node')
-rw-r--r--std/node/os.ts6
-rw-r--r--std/node/os_test.ts5
2 files changed, 6 insertions, 5 deletions
diff --git a/std/node/os.ts b/std/node/os.ts
index 27b054f4d..7d072cac8 100644
--- a/std/node/os.ts
+++ b/std/node/os.ts
@@ -136,12 +136,12 @@ export function getPriority(pid = 0): number {
/** Returns the string path of the current user's home directory. */
export function homedir(): string | null {
- return Deno.dir("home");
+ notImplemented(SEE_GITHUB_ISSUE);
}
/** Returns the host name of the operating system as a string. */
export function hostname(): string {
- return Deno.hostname();
+ notImplemented(SEE_GITHUB_ISSUE);
}
/** Returns an array containing the 1, 5, and 15 minute load averages */
@@ -182,7 +182,7 @@ export function setPriority(pid: number, priority?: number): void {
/** Returns the operating system's default directory for temporary files as a string. */
export function tmpdir(): string | null {
- return Deno.dir("tmp");
+ notImplemented(SEE_GITHUB_ISSUE);
}
/** Not yet implemented */
diff --git a/std/node/os_test.ts b/std/node/os_test.ts
index 11de777a9..c5f39f635 100644
--- a/std/node/os_test.ts
+++ b/std/node/os_test.ts
@@ -10,6 +10,7 @@ Deno.test({
Deno.test({
name: "home directory is a string",
+ ignore: true,
fn() {
assertEquals(typeof os.homedir(), "string");
},
@@ -17,6 +18,7 @@ Deno.test({
Deno.test({
name: "tmp directory is a string",
+ ignore: true,
fn() {
assertEquals(typeof os.tmpdir(), "string");
},
@@ -24,6 +26,7 @@ Deno.test({
Deno.test({
name: "hostname is a string",
+ ignore: true,
fn() {
assertEquals(typeof os.hostname(), "string");
},
@@ -192,8 +195,6 @@ Deno.test({
fn() {
assertEquals(`${os.arch}`, os.arch());
assertEquals(`${os.endianness}`, os.endianness());
- assertEquals(`${os.homedir}`, os.homedir());
- assertEquals(`${os.hostname}`, os.hostname());
assertEquals(`${os.platform}`, os.platform());
},
});