smartdrive/test/test.ts

24 lines
649 B
TypeScript
Raw Normal View History

2021-12-03 15:39:50 +00:00
import * as smartdrive from '../ts/index';
2017-06-08 23:24:19 +00:00
2021-12-03 15:39:50 +00:00
import { expect, tap } from '@pushrocks/tapbundle';
2017-06-08 23:24:19 +00:00
2021-12-03 15:39:50 +00:00
let myLocalDriveList: smartdrive.SmartDrive;
let driveList: smartdrive.IDrive[];
2017-06-08 23:24:19 +00:00
tap.test('should create a new LocalDriveList', async () => {
2021-12-03 15:39:50 +00:00
myLocalDriveList = new smartdrive.SmartDrive();
expect(myLocalDriveList).to.be.instanceof(smartdrive.SmartDrive);
});
2017-06-08 23:24:19 +00:00
tap.test('should deliver a local drivelist', async () => {
2021-12-03 15:39:50 +00:00
driveList = await myLocalDriveList.getLocalDriveList();
});
2017-06-08 23:24:19 +00:00
tap.test('drivelist should contain drives', async () => {
2021-12-03 15:39:50 +00:00
console.log(driveList);
});
2017-06-08 23:24:19 +00:00
2021-12-03 15:39:50 +00:00
tap.test('drivelist should contain drives', async () => {});
2017-07-20 22:04:08 +00:00
2021-12-03 15:39:50 +00:00
tap.start();