summaryrefslogtreecommitdiff
path: root/std/node/os_test.ts
diff options
context:
space:
mode:
authorecyrbe <ecyrbe@gmail.com>2020-02-21 18:01:01 +0100
committerGitHub <noreply@github.com>2020-02-21 12:01:01 -0500
commit754b8c65ad5adda2961c667a6b64ab59c130111d (patch)
treed7ddf24951a444cc3fb3c9beefbcb230dab62194 /std/node/os_test.ts
parent08686cbc3ae63008837ee45b2c4f41d6674c57dd (diff)
feat(std/node) : add os.platform (#4064)
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 14d4e42ab..f13589a4b 100644
--- a/std/node/os_test.ts
+++ b/std/node/os_test.ts
@@ -29,6 +29,13 @@ test({
});
test({
+ name: "platform is a string",
+ fn() {
+ assertEquals(typeof os.platform(), "string");
+ }
+});
+
+test({
name: "getPriority(): PID must be a 32 bit integer",
fn() {
assertThrows(
@@ -217,13 +224,6 @@ test({
);
assertThrows(
() => {
- os.platform();
- },
- Error,
- "Not implemented"
- );
- assertThrows(
- () => {
os.release();
},
Error,