@sprucelabs/data-stores 28.1.330 → 28.1.331
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.
@@ -1002,8 +1002,8 @@ const databaseAssertUtil = {
|
|
1002
1002
|
]);
|
1003
1003
|
}
|
1004
1004
|
catch (err) {
|
1005
|
-
assert.fail(
|
1006
|
-
err.stack) !== null && _a !== void 0 ? _a : err.message);
|
1005
|
+
assert.fail(`Trying to create a unique index on target.organizationId and slug failed.\n\n` +
|
1006
|
+
((_a = err.stack) !== null && _a !== void 0 ? _a : err.message));
|
1007
1007
|
}
|
1008
1008
|
yield db.createOne(this.collectionName, {
|
1009
1009
|
name: generateId(),
|
@@ -1482,8 +1482,8 @@ const databaseAssertUtil = {
|
|
1482
1482
|
]);
|
1483
1483
|
}
|
1484
1484
|
catch (err) {
|
1485
|
-
assert.fail(
|
1486
|
-
err.stack) !== null && _a !== void 0 ? _a : err.message);
|
1485
|
+
assert.fail(`syncUniqueIndexes() should not have thrown an error when syncing a unique index with a filter expression.\n\n` +
|
1486
|
+
((_a = err.stack) !== null && _a !== void 0 ? _a : err.message));
|
1487
1487
|
}
|
1488
1488
|
try {
|
1489
1489
|
yield db.createOne(this.collectionName, {
|
@@ -1494,8 +1494,8 @@ const databaseAssertUtil = {
|
|
1494
1494
|
});
|
1495
1495
|
}
|
1496
1496
|
catch (err) {
|
1497
|
-
assert.fail(
|
1498
|
-
err.stack) !== null && _b !== void 0 ? _b : err.message);
|
1497
|
+
assert.fail(`Creating a record should not have thrown an error after syncing a unique index with a filter expression.\n\n` +
|
1498
|
+
((_b = err.stack) !== null && _b !== void 0 ? _b : err.message));
|
1499
1499
|
}
|
1500
1500
|
yield assert.doesThrowAsync(() => db.createOne(this.collectionName, {
|
1501
1501
|
name: generateId(),
|
@@ -1530,8 +1530,8 @@ const databaseAssertUtil = {
|
|
1530
1530
|
]);
|
1531
1531
|
}
|
1532
1532
|
catch (err) {
|
1533
|
-
assert.fail(
|
1534
|
-
err.stack) !== null && _c !== void 0 ? _c : err.message);
|
1533
|
+
assert.fail(`syncUniqueIndexes() should not have thrown an error when syncing multiple unique indexes with filter expressions.\n\n` +
|
1534
|
+
((_c = err.stack) !== null && _c !== void 0 ? _c : err.message));
|
1535
1535
|
}
|
1536
1536
|
yield db.createOne(this.collectionName, {
|
1537
1537
|
name: generateId(),
|
@@ -1548,8 +1548,8 @@ const databaseAssertUtil = {
|
|
1548
1548
|
});
|
1549
1549
|
}
|
1550
1550
|
catch (err) {
|
1551
|
-
assert.fail(
|
1552
|
-
err.stack) !== null && _d !== void 0 ? _d : err.message);
|
1551
|
+
assert.fail(`createOne() should not throw since index has filter { slug: { \$type: 'string' } }.\n\n` +
|
1552
|
+
((_d = err.stack) !== null && _d !== void 0 ? _d : err.message));
|
1553
1553
|
}
|
1554
1554
|
try {
|
1555
1555
|
yield db.createOne(this.collectionName, {
|
@@ -1560,8 +1560,8 @@ const databaseAssertUtil = {
|
|
1560
1560
|
});
|
1561
1561
|
}
|
1562
1562
|
catch (err) {
|
1563
|
-
assert.fail(
|
1564
|
-
err.stack) !== null && _e !== void 0 ? _e : err.message);
|
1563
|
+
assert.fail(`createOne() should not throw since index has filter {uniqueField: { \$type: 'string' } }.\n\n` +
|
1564
|
+
((_e = err.stack) !== null && _e !== void 0 ? _e : err.message));
|
1565
1565
|
}
|
1566
1566
|
yield assert.doesThrowAsync(() => db.createOne(this.collectionName, {
|
1567
1567
|
name: generateId(),
|
@@ -913,8 +913,8 @@ const databaseAssertUtil = {
|
|
913
913
|
]);
|
914
914
|
}
|
915
915
|
catch (err) {
|
916
|
-
test_utils_1.assert.fail(
|
917
|
-
err.stack) !== null && _a !== void 0 ? _a : err.message);
|
916
|
+
test_utils_1.assert.fail(`Trying to create a unique index on target.organizationId and slug failed.\n\n` +
|
917
|
+
((_a = err.stack) !== null && _a !== void 0 ? _a : err.message));
|
918
918
|
}
|
919
919
|
await db.createOne(this.collectionName, {
|
920
920
|
name: (0, generateId_1.default)(),
|
@@ -1357,8 +1357,8 @@ const databaseAssertUtil = {
|
|
1357
1357
|
]);
|
1358
1358
|
}
|
1359
1359
|
catch (err) {
|
1360
|
-
test_utils_1.assert.fail(
|
1361
|
-
err.stack) !== null && _a !== void 0 ? _a : err.message);
|
1360
|
+
test_utils_1.assert.fail(`syncUniqueIndexes() should not have thrown an error when syncing a unique index with a filter expression.\n\n` +
|
1361
|
+
((_a = err.stack) !== null && _a !== void 0 ? _a : err.message));
|
1362
1362
|
}
|
1363
1363
|
try {
|
1364
1364
|
await db.createOne(this.collectionName, {
|
@@ -1369,8 +1369,8 @@ const databaseAssertUtil = {
|
|
1369
1369
|
});
|
1370
1370
|
}
|
1371
1371
|
catch (err) {
|
1372
|
-
test_utils_1.assert.fail(
|
1373
|
-
err.stack) !== null && _b !== void 0 ? _b : err.message);
|
1372
|
+
test_utils_1.assert.fail(`Creating a record should not have thrown an error after syncing a unique index with a filter expression.\n\n` +
|
1373
|
+
((_b = err.stack) !== null && _b !== void 0 ? _b : err.message));
|
1374
1374
|
}
|
1375
1375
|
await test_utils_1.assert.doesThrowAsync(() => db.createOne(this.collectionName, {
|
1376
1376
|
name: (0, generateId_1.default)(),
|
@@ -1405,8 +1405,8 @@ const databaseAssertUtil = {
|
|
1405
1405
|
]);
|
1406
1406
|
}
|
1407
1407
|
catch (err) {
|
1408
|
-
test_utils_1.assert.fail(
|
1409
|
-
err.stack) !== null && _c !== void 0 ? _c : err.message);
|
1408
|
+
test_utils_1.assert.fail(`syncUniqueIndexes() should not have thrown an error when syncing multiple unique indexes with filter expressions.\n\n` +
|
1409
|
+
((_c = err.stack) !== null && _c !== void 0 ? _c : err.message));
|
1410
1410
|
}
|
1411
1411
|
await db.createOne(this.collectionName, {
|
1412
1412
|
name: (0, generateId_1.default)(),
|
@@ -1423,8 +1423,8 @@ const databaseAssertUtil = {
|
|
1423
1423
|
});
|
1424
1424
|
}
|
1425
1425
|
catch (err) {
|
1426
|
-
test_utils_1.assert.fail(
|
1427
|
-
err.stack) !== null && _d !== void 0 ? _d : err.message);
|
1426
|
+
test_utils_1.assert.fail(`createOne() should not throw since index has filter { slug: { \$type: 'string' } }.\n\n` +
|
1427
|
+
((_d = err.stack) !== null && _d !== void 0 ? _d : err.message));
|
1428
1428
|
}
|
1429
1429
|
try {
|
1430
1430
|
await db.createOne(this.collectionName, {
|
@@ -1435,8 +1435,8 @@ const databaseAssertUtil = {
|
|
1435
1435
|
});
|
1436
1436
|
}
|
1437
1437
|
catch (err) {
|
1438
|
-
test_utils_1.assert.fail(
|
1439
|
-
err.stack) !== null && _e !== void 0 ? _e : err.message);
|
1438
|
+
test_utils_1.assert.fail(`createOne() should not throw since index has filter {uniqueField: { \$type: 'string' } }.\n\n` +
|
1439
|
+
((_e = err.stack) !== null && _e !== void 0 ? _e : err.message));
|
1440
1440
|
}
|
1441
1441
|
await test_utils_1.assert.doesThrowAsync(() => db.createOne(this.collectionName, {
|
1442
1442
|
name: (0, generateId_1.default)(),
|