diff options
Diffstat (limited to 'tests/unit_node')
-rw-r--r-- | tests/unit_node/process_test.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit_node/process_test.ts b/tests/unit_node/process_test.ts index 962877935..b3db9753e 100644 --- a/tests/unit_node/process_test.ts +++ b/tests/unit_node/process_test.ts @@ -1131,3 +1131,9 @@ Deno.test(function importedExecArgvTest() { Deno.test(function importedExecPathTest() { assertEquals(importedExecPath, Deno.execPath()); }); + +Deno.test("process.cpuUsage()", () => { + const cpuUsage = process.cpuUsage(); + assert(typeof cpuUsage.user === "number"); + assert(typeof cpuUsage.system === "number"); +}); |