diff options
author | ecyrbe <ecyrbe@gmail.com> | 2020-03-02 01:05:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-01 19:05:04 -0500 |
commit | 2a594bd3b2403fbbd26a0191ac8c289c365451d0 (patch) | |
tree | 0b620a57e80ff1651f230ae0f6458145d1017cde /std/node/os_test.ts | |
parent | ad21210edd5aabdeebe70809672b4224cc6f41c9 (diff) |
feat(std/node): add os.tmpdir() implementation (#4213)
Diffstat (limited to 'std/node/os_test.ts')
-rw-r--r-- | std/node/os_test.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/std/node/os_test.ts b/std/node/os_test.ts index 6ef123575..a73a2d4e9 100644 --- a/std/node/os_test.ts +++ b/std/node/os_test.ts @@ -17,6 +17,13 @@ test({ }); test({ + name: "tmp directory is a string", + fn() { + assertEquals(typeof os.tmpdir(), "string"); + } +}); + +test({ name: "hostname is a string", fn() { assertEquals(typeof os.hostname(), "string"); @@ -232,13 +239,6 @@ test({ ); assertThrows( () => { - os.tmpdir(); - }, - Error, - "Not implemented" - ); - assertThrows( - () => { os.totalmem(); }, Error, |