fix(core): update

This commit is contained in:
2019-09-02 16:51:22 +02:00
parent 7e9fc62ce7
commit bf3656f792
6 changed files with 68 additions and 67 deletions

View File

@ -55,10 +55,10 @@ tap.test('should establish a connection to the rethink Db cluster', async () =>
class Car extends smartdata.SmartDataDbDoc<Car> {
@smartdata.unI()
public index: string = smartunique.shortId();
@smartdata.svDb()
public color: string;
@smartdata.svDb()
public brand: string;
@ -91,7 +91,6 @@ tap.test('expect to get instance of Car and update it', async () => {
expect(myCar.color).to.equal('red');
myCar.color = 'blue';
await myCar.save();
});
tap.test('should be able to update an instance of car', async () => {});