summaryrefslogtreecommitdiff
path: root/std/node/os_test.ts
diff options
context:
space:
mode:
authorMVEMCJSUNPE <2frac.d.x@gmail.com>2020-12-15 04:13:22 -0600
committerGitHub <noreply@github.com>2020-12-15 05:13:22 -0500
commit7a9766dd18cc85053c984cb991dc3debac92530c (patch)
tree34f0033ae38bb546ce973541af5a49f78d564524 /std/node/os_test.ts
parenta5a151389e58f2715d8afe3fd4a8009979943ddc (diff)
feat(std/node): Added os.type (#8591)
Diffstat (limited to 'std/node/os_test.ts')
-rw-r--r--std/node/os_test.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/std/node/os_test.ts b/std/node/os_test.ts
index 8879f8345..3200083a1 100644
--- a/std/node/os_test.ts
+++ b/std/node/os_test.ts
@@ -48,6 +48,13 @@ Deno.test({
});
Deno.test({
+ name: "type is a string",
+ fn() {
+ assertEquals(typeof os.type(), "string");
+ },
+});
+
+Deno.test({
name: "getPriority(): PID must be a 32 bit integer",
fn() {
assertThrows(
@@ -247,13 +254,6 @@ Deno.test({
);
assertThrows(
() => {
- os.type();
- },
- Error,
- "Not implemented",
- );
- assertThrows(
- () => {
os.uptime();
},
Error,