@sprucelabs/data-stores 28.3.263 → 28.3.264

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.
@@ -468,9 +468,11 @@ const databaseAssertUtil = {
468
468
  catch (_a) {
469
469
  assert.fail('createOne() tried to create a record with an object field. Make sure the target field handles objects!');
470
470
  }
471
+ assert.isTruthy(created, 'createOne() did not return the record created!');
471
472
  const matched = yield db.findOne(this.collectionName, {
472
473
  id: created.id,
473
474
  });
475
+ assert.isTruthy(matched, `findOne() with id ${created.id} returned null`);
474
476
  assert.isEqualDeep(matched, Object.assign(Object.assign({}, created), { id: matched.id }));
475
477
  yield this.shutdown(db);
476
478
  });
@@ -425,9 +425,11 @@ const databaseAssertUtil = {
425
425
  catch (_a) {
426
426
  test_utils_1.assert.fail('createOne() tried to create a record with an object field. Make sure the target field handles objects!');
427
427
  }
428
+ test_utils_1.assert.isTruthy(created, 'createOne() did not return the record created!');
428
429
  const matched = await db.findOne(this.collectionName, {
429
430
  id: created.id,
430
431
  });
432
+ test_utils_1.assert.isTruthy(matched, `findOne() with id ${created.id} returned null`);
431
433
  test_utils_1.assert.isEqualDeep(matched, Object.assign(Object.assign({}, created), { id: matched.id }));
432
434
  await this.shutdown(db);
433
435
  },
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "28.3.263",
6
+ "version": "28.3.264",
7
7
  "files": [
8
8
  "build/**/*",
9
9
  "!build/__tests__",