summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
Diffstat (limited to 'std')
-rw-r--r--std/node/os.ts4
-rw-r--r--std/node/os_test.ts14
2 files changed, 9 insertions, 9 deletions
diff --git a/std/node/os.ts b/std/node/os.ts
index 39209b4b7..f34551da9 100644
--- a/std/node/os.ts
+++ b/std/node/os.ts
@@ -161,9 +161,9 @@ export function platform(): string {
return process.platform;
}
-/** Not yet implemented */
+/** Returns the operating system as a string */
export function release(): string {
- notImplemented(SEE_GITHUB_ISSUE);
+ return Deno.osRelease();
}
/** Not yet implemented */
diff --git a/std/node/os_test.ts b/std/node/os_test.ts
index 2ceff79a4..6ef123575 100644
--- a/std/node/os_test.ts
+++ b/std/node/os_test.ts
@@ -31,6 +31,13 @@ test({
});
test({
+ name: "release is a string",
+ fn() {
+ assertEquals(typeof os.release(), "string");
+ }
+});
+
+test({
name: "getPriority(): PID must be a 32 bit integer",
fn() {
assertThrows(
@@ -218,13 +225,6 @@ test({
);
assertThrows(
() => {
- os.release();
- },
- Error,
- "Not implemented"
- );
- assertThrows(
- () => {
os.setPriority(0);
},
Error,