smartsystem/test/test.ts

16 lines
489 B
TypeScript
Raw Normal View History

2019-08-21 23:05:21 +00:00
import { tap, expect } from '@pushrocks/tapbundle';
import * as smartsystem from '../ts/index';
2016-10-12 12:01:15 +00:00
2019-08-21 23:05:21 +00:00
let smartsystemInstance: smartsystem.Smartsystem;
2016-10-12 12:01:15 +00:00
2019-08-21 23:05:21 +00:00
tap.test('should create a smartsystem instance', async tools => {
smartsystemInstance = new smartsystem.Smartsystem();
expect(smartsystemInstance).to.be.instanceOf(smartsystem.Smartsystem);
});
2017-07-31 13:16:10 +00:00
2019-08-21 23:05:21 +00:00
tap.test('should state the operating system', async () => {
2019-08-22 11:01:44 +00:00
expect(smartsystemInstance.cpus.length).to.be.greaterThan(0);
2019-08-21 23:05:21 +00:00
});
2017-05-13 09:03:24 +00:00
2019-08-21 23:05:21 +00:00
tap.start();