@sprucelabs/data-stores 28.3.270 → 28.3.271
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -603,7 +603,7 @@ const databaseAssertUtil = {
|
|
603
603
|
assert.isEqual(updated.name, 'updated', 'updateOne() did not update the fields. I tried to update the name field to "updated".');
|
604
604
|
assert.isEqual(updated.isPublic, true, 'Make sure you return existing fields from updateOne()! So, the actual record.');
|
605
605
|
const match = yield db.findOne(this.collectionName, { id: updated.id });
|
606
|
-
assert.isEqualDeep(match, updated, 'The record in the database did not actually
|
606
|
+
assert.isEqualDeep(match, Object.assign(Object.assign({}, inserted), { name: 'updated' }), 'The record in the database did not actually updated! Check that fields are not lost as well as updated.');
|
607
607
|
yield this.shutdown(db);
|
608
608
|
});
|
609
609
|
},
|
@@ -548,7 +548,7 @@ const databaseAssertUtil = {
|
|
548
548
|
test_utils_1.assert.isEqual(updated.name, 'updated', 'updateOne() did not update the fields. I tried to update the name field to "updated".');
|
549
549
|
test_utils_1.assert.isEqual(updated.isPublic, true, 'Make sure you return existing fields from updateOne()! So, the actual record.');
|
550
550
|
const match = await db.findOne(this.collectionName, { id: updated.id });
|
551
|
-
test_utils_1.assert.isEqualDeep(match, updated, 'The record in the database did not actually
|
551
|
+
test_utils_1.assert.isEqualDeep(match, Object.assign(Object.assign({}, inserted), { name: 'updated' }), 'The record in the database did not actually updated! Check that fields are not lost as well as updated.');
|
552
552
|
await this.shutdown(db);
|
553
553
|
},
|
554
554
|
async assertCanSortById(connect) {
|