diff options
Diffstat (limited to 'std/node')
-rw-r--r-- | std/node/os.ts | 4 | ||||
-rw-r--r-- | std/node/os_test.ts | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/std/node/os.ts b/std/node/os.ts index 65b158b3f..27b054f4d 100644 --- a/std/node/os.ts +++ b/std/node/os.ts @@ -190,9 +190,9 @@ export function totalmem(): number { notImplemented(SEE_GITHUB_ISSUE); } -/** Returns the operating system name as returned by uname(3) */ +/** Not yet implemented */ export function type(): string { - return Deno.osName(); + notImplemented(SEE_GITHUB_ISSUE); } /** Not yet implemented */ diff --git a/std/node/os_test.ts b/std/node/os_test.ts index c67879d23..f0b9ca79d 100644 --- a/std/node/os_test.ts +++ b/std/node/os_test.ts @@ -246,6 +246,13 @@ test({ ); assertThrows( () => { + os.type(); + }, + Error, + "Not implemented" + ); + assertThrows( + () => { os.uptime(); }, Error, |