summaryrefslogtreecommitdiff
path: root/cli/tests/unit/os_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/os_test.ts')
-rw-r--r--cli/tests/unit/os_test.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/unit/os_test.ts b/cli/tests/unit/os_test.ts
index a6eb3a760..4e12ddca3 100644
--- a/cli/tests/unit/os_test.ts
+++ b/cli/tests/unit/os_test.ts
@@ -188,3 +188,9 @@ unitTest({ perms: { env: true } }, function systemMemoryInfo(): void {
assert(info.swapTotal >= 0);
assert(info.swapFree >= 0);
});
+
+unitTest({ perms: { env: true } }, function systemCpuInfo(): void {
+ const { cores, speed } = Deno.systemCpuInfo();
+ assert(cores === undefined || cores > 0);
+ assert(speed === undefined || speed > 0);
+});