@sprucelabs/data-stores 28.1.335 → 28.1.337

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.
@@ -893,7 +893,7 @@ const databaseAssertUtil = {
893
893
  return __awaiter(this, void 0, void 0, function* () {
894
894
  const db = yield connectToDabatase(connect);
895
895
  yield assertCantCreateUniqueIndexTwice(db, this.collectionName, ['uniqueField'], 1);
896
- yield assertCantCreateUniqueIndexTwice(db, this.collectionName, ['uniqueField', 'anotherField'], 2);
896
+ yield assertCantCreateUniqueIndexTwice(db, this.collectionName, ['uniqueField', 'someField2'], 2);
897
897
  yield this.shutdown(db);
898
898
  });
899
899
  },
@@ -1645,6 +1645,7 @@ const databaseAssertUtil = {
1645
1645
  catch (_b) {
1646
1646
  assert.fail(`A record was created that should have been blocked by a unique index with a filter`);
1647
1647
  }
1648
+ yield this.shutdown(db);
1648
1649
  });
1649
1650
  },
1650
1651
  assertSyncIndexesRemovesExtraIndexes(connect) {
@@ -810,7 +810,7 @@ const databaseAssertUtil = {
810
810
  async assertCantCreateUniqueIndexTwice(connect) {
811
811
  const db = await connectToDabatase(connect);
812
812
  await assertCantCreateUniqueIndexTwice(db, this.collectionName, ['uniqueField'], 1);
813
- await assertCantCreateUniqueIndexTwice(db, this.collectionName, ['uniqueField', 'anotherField'], 2);
813
+ await assertCantCreateUniqueIndexTwice(db, this.collectionName, ['uniqueField', 'someField2'], 2);
814
814
  await this.shutdown(db);
815
815
  },
816
816
  async assertSyncingUniqueIndexesIsRaceProof(connect) {
@@ -1518,6 +1518,7 @@ const databaseAssertUtil = {
1518
1518
  catch (_b) {
1519
1519
  test_utils_1.assert.fail(`A record was created that should have been blocked by a unique index with a filter`);
1520
1520
  }
1521
+ await this.shutdown(db);
1521
1522
  },
1522
1523
  async assertSyncIndexesRemovesExtraIndexes(connect) {
1523
1524
  const db = await connectToDabatase(connect);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "28.1.335",
6
+ "version": "28.1.337",
7
7
  "files": [
8
8
  "build/**/*",
9
9
  "!build/__tests__",