@sprucelabs/data-stores 28.3.262 → 28.3.263
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.
@@ -535,7 +535,7 @@ const databaseAssertUtil = {
|
|
535
535
|
const results = yield db.create(this.collectionName, values);
|
536
536
|
assert.isLength(results, values.length);
|
537
537
|
for (const val of values) {
|
538
|
-
assert.doesInclude(results, val);
|
538
|
+
assert.doesInclude(results, val, 'Create many did not return the expected records!');
|
539
539
|
}
|
540
540
|
yield this.shutdown(db);
|
541
541
|
});
|
@@ -1946,7 +1946,7 @@ const databaseAssertUtil = {
|
|
1946
1946
|
const matches = yield db.find(this.collectionName, {
|
1947
1947
|
$or,
|
1948
1948
|
});
|
1949
|
-
assert.isLength(matches, expected);
|
1949
|
+
assert.isLength(matches, expected, `Expected to find a specific number of records using $or: ${JSON.stringify($or)}`);
|
1950
1950
|
});
|
1951
1951
|
},
|
1952
1952
|
_assertCanCreateMultiFieldIndex(connect, fields) {
|
@@ -486,7 +486,7 @@ const databaseAssertUtil = {
|
|
486
486
|
const results = await db.create(this.collectionName, values);
|
487
487
|
test_utils_1.assert.isLength(results, values.length);
|
488
488
|
for (const val of values) {
|
489
|
-
test_utils_1.assert.doesInclude(results, val);
|
489
|
+
test_utils_1.assert.doesInclude(results, val, 'Create many did not return the expected records!');
|
490
490
|
}
|
491
491
|
await this.shutdown(db);
|
492
492
|
},
|
@@ -1789,7 +1789,7 @@ const databaseAssertUtil = {
|
|
1789
1789
|
const matches = await db.find(this.collectionName, {
|
1790
1790
|
$or,
|
1791
1791
|
});
|
1792
|
-
test_utils_1.assert.isLength(matches, expected);
|
1792
|
+
test_utils_1.assert.isLength(matches, expected, `Expected to find a specific number of records using $or: ${JSON.stringify($or)}`);
|
1793
1793
|
},
|
1794
1794
|
async _assertCanCreateMultiFieldIndex(connect, fields) {
|
1795
1795
|
const db = await connectToDabatase(connect);
|