@sprucelabs/data-stores 28.1.5 → 28.1.7

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.
@@ -482,7 +482,8 @@ const databaseAssertUtil = {
482
482
  const matched = yield db.findOne(this.collectionName, {
483
483
  id: created.id,
484
484
  });
485
- assert.isEqualDeep(matched.target, target);
485
+ assert.isTruthy(matched, `findOne() with id ${created.id} returned null`);
486
+ assert.isEqualDeep(matched.target, target, `field called "target" which is an object was not updated as expected.`, true);
486
487
  yield this.shutdown(db);
487
488
  });
488
489
  },
@@ -437,7 +437,8 @@ const databaseAssertUtil = {
437
437
  const matched = await db.findOne(this.collectionName, {
438
438
  id: created.id,
439
439
  });
440
- test_utils_1.assert.isEqualDeep(matched.target, target);
440
+ test_utils_1.assert.isTruthy(matched, `findOne() with id ${created.id} returned null`);
441
+ test_utils_1.assert.isEqualDeep(matched.target, target, `field called "target" which is an object was not updated as expected.`, true);
441
442
  await this.shutdown(db);
442
443
  },
443
444
  async assertCanUpdateFieldInObjectFieldWithTargettedWhere(connect) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "28.1.5",
6
+ "version": "28.1.7",
7
7
  "files": [
8
8
  "build/**/*",
9
9
  "!build/__tests__",
@@ -70,7 +70,7 @@
70
70
  "@sprucelabs/error": "^6.0.36",
71
71
  "@sprucelabs/globby": "^2.0.17",
72
72
  "@sprucelabs/schema": "^30.0.65",
73
- "@sprucelabs/spruce-skill-utils": "^31.0.70",
73
+ "@sprucelabs/spruce-skill-utils": "^31.0.71",
74
74
  "just-clone": "^6.2.0",
75
75
  "lodash": "^4.17.21",
76
76
  "mongodb": "^6.7.0",