BREAKING CHANGE(core): switch to esm

This commit is contained in:
2022-07-28 22:07:52 +02:00
parent b02ee5e9f4
commit 8956f4be89
12 changed files with 7187 additions and 18103 deletions

View File

@ -1,16 +1,16 @@
import { tap, expect } from '@pushrocks/tapbundle';
import * as smartsystem from '../ts/index';
import { systeminformation } from '../ts/smartsystem.plugins';
import * as smartsystem from '../ts/index.js';
import { systeminformation } from '../ts/smartsystem.plugins.js';
let smartsystemInstance: smartsystem.Smartsystem;
tap.test('should create a smartsystem instance', async (tools) => {
smartsystemInstance = new smartsystem.Smartsystem();
expect(smartsystemInstance).to.be.instanceOf(smartsystem.Smartsystem);
expect(smartsystemInstance).toBeInstanceOf(smartsystem.Smartsystem);
});
tap.test('should state the operating system', async () => {
expect(smartsystemInstance.cpus.length).to.be.greaterThan(0);
expect(smartsystemInstance.cpus.length).toBeGreaterThan(0);
});
tap.test('should get systeminformation', async () => {