prepare v2 of smartdata

This commit is contained in:
2018-01-07 17:26:34 +01:00
parent 3ba2bc8446
commit 2d97ab9dc5
12 changed files with 44 additions and 81 deletions

View File

@ -37,7 +37,7 @@ tap.test('should create an extended class', async () => {
})
expect(testCarInstance.name).to.equal('TestCar')
expect(testCarInstance.saveableProperties[ 0 ]).equal('color')
expect(testCarInstance.collection).be.instanceof(smartdata.DbCollection)
expect(testCarInstance.collection).be.instanceof(smartdata.DbTable)
expect(testCarInstance).be.instanceof(smartdata.DbDoc)
if (!process.env.CI) { console.log(TestCar) }
})

View File

@ -29,7 +29,7 @@ tap.test('should establish a connection to mongodb', async () => {
// ------
// Collections
// ------
let testDbCollection: smartdata.DbCollection<ITestObject1>
let testDbCollection: smartdata.DbTable<ITestObject1>
tap.test('should give me a collection', async () => {
testDbCollection = await testDb.getObjectCollectionByName<ITestObject1>('TestValue', testDb, true)