From 2a594bd3b2403fbbd26a0191ac8c289c365451d0 Mon Sep 17 00:00:00 2001 From: ecyrbe Date: Mon, 2 Mar 2020 01:05:04 +0100 Subject: feat(std/node): add os.tmpdir() implementation (#4213) --- std/node/os_test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'std/node/os_test.ts') 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 @@ -16,6 +16,13 @@ test({ } }); +test({ + name: "tmp directory is a string", + fn() { + assertEquals(typeof os.tmpdir(), "string"); + } +}); + test({ name: "hostname is a string", fn() { @@ -230,13 +237,6 @@ test({ Error, "Not implemented" ); - assertThrows( - () => { - os.tmpdir(); - }, - Error, - "Not implemented" - ); assertThrows( () => { os.totalmem(); -- cgit v1.2.3