This commit is contained in:
2017-06-09 01:24:19 +02:00
parent b269a05b3f
commit fbf107c3c7
20 changed files with 527 additions and 24 deletions

21
test/test.ts Normal file
View File

@@ -0,0 +1,21 @@
import * as smartdrive from '../dist/index'
import { expect, tap } from 'tapbundle'
let myLocalDriveList: smartdrive.LocalDriveList
let driveList: smartdrive.IDrive[]
tap.test('should create a new LocalDriveList', async () => {
myLocalDriveList = new smartdrive.LocalDriveList()
expect(myLocalDriveList).to.be.instanceof(smartdrive.LocalDriveList)
})
tap.test('should deliver a local drivelist', async () => {
driveList = await myLocalDriveList.getList()
})
tap.test('drivelist should contain drives', async () => {
console.log(driveList)
})
tap.start()