prepare v2 of smartdata
This commit is contained in:
@ -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) }
|
||||
})
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user