diff options
author | cknight <cknight1234@gmail.com> | 2020-01-30 01:57:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-29 20:57:29 -0500 |
commit | f0a6062012c4e09553877c9feedb3fbc3d4625b9 (patch) | |
tree | d3e847c285718a4a8a422525cbc9d1e74220a3ec /std/node/module_test.ts | |
parent | 161adfc51b750a7c8c62a898ea9948c2ad5b6cd9 (diff) |
Partial implementation of node os polyfill based on currently available Deno functionality (#3821)
Diffstat (limited to 'std/node/module_test.ts')
-rw-r--r-- | std/node/module_test.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/std/node/module_test.ts b/std/node/module_test.ts index 91744d94d..a869179dd 100644 --- a/std/node/module_test.ts +++ b/std/node/module_test.ts @@ -42,3 +42,9 @@ test(function requireIndexJS() { const { isIndex } = require_("./tests/cjs"); assert(isIndex); }); + +test(function requireNodeOs() { + const os = require_("os"); + assert(os.arch); + assert(typeof os.arch() == "string"); +}); |