fix(core): update
This commit is contained in:
28
test/test.ts
28
test/test.ts
@ -1,25 +1,23 @@
|
||||
import * as smartdrive from '../dist/index'
|
||||
import * as smartdrive from '../ts/index';
|
||||
|
||||
import { expect, tap } from 'tapbundle'
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
|
||||
let myLocalDriveList: smartdrive.LocalDriveList
|
||||
let driveList: smartdrive.IDrive[]
|
||||
let myLocalDriveList: smartdrive.SmartDrive;
|
||||
let driveList: smartdrive.IDrive[];
|
||||
|
||||
tap.test('should create a new LocalDriveList', async () => {
|
||||
myLocalDriveList = new smartdrive.LocalDriveList()
|
||||
expect(myLocalDriveList).to.be.instanceof(smartdrive.LocalDriveList)
|
||||
})
|
||||
myLocalDriveList = new smartdrive.SmartDrive();
|
||||
expect(myLocalDriveList).to.be.instanceof(smartdrive.SmartDrive);
|
||||
});
|
||||
|
||||
tap.test('should deliver a local drivelist', async () => {
|
||||
driveList = await myLocalDriveList.getList()
|
||||
})
|
||||
driveList = await myLocalDriveList.getLocalDriveList();
|
||||
});
|
||||
|
||||
tap.test('drivelist should contain drives', async () => {
|
||||
console.log(driveList)
|
||||
})
|
||||
console.log(driveList);
|
||||
});
|
||||
|
||||
tap.test('drivelist should contain drives', async () => {
|
||||
|
||||
})
|
||||
tap.test('drivelist should contain drives', async () => {});
|
||||
|
||||
tap.start()
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user