From 10ab005343fc9be9a5109c6c7d4be5a23fa961f2 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Thu, 22 Aug 2019 13:01:44 +0200 Subject: [PATCH] fix(core): update --- test/test.ts | 2 +- ts/index.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test/test.ts b/test/test.ts index a5f5cc8..489ab21 100644 --- a/test/test.ts +++ b/test/test.ts @@ -9,7 +9,7 @@ tap.test('should create a smartsystem instance', async tools => { }); tap.test('should state the operating system', async () => { - expect(smartsystemInstance.cpuCount); + expect(smartsystemInstance.cpus.length).to.be.greaterThan(0); }); tap.start(); diff --git a/ts/index.ts b/ts/index.ts index 577241d..9f0e8f9 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -2,6 +2,5 @@ import * as plugins from './smartsystem.plugins'; export class Smartsystem { public env = new plugins.smartenv.Smartenv() - - public cpuCount = plugins.os.cpus().length; + public cpus = plugins.os.cpus(); }