summaryrefslogtreecommitdiff
path: root/std/node/os_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/node/os_test.ts')
-rw-r--r--std/node/os_test.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/std/node/os_test.ts b/std/node/os_test.ts
index f825ae192..2ceff79a4 100644
--- a/std/node/os_test.ts
+++ b/std/node/os_test.ts
@@ -175,6 +175,17 @@ test({
});
test({
+ name: "Primitive coercion works as expected",
+ 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());
+ }
+});
+
+test({
name: "APIs not yet implemented",
fn() {
assertThrows(