@sprucelabs/data-stores 28.3.273 → 28.3.275

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.
@@ -1254,19 +1254,19 @@ const databaseAssertUtil = {
1254
1254
  const gteMatches = yield db.find(this.collectionName, {
1255
1255
  number: { $gte: created[2].number },
1256
1256
  });
1257
- assert.isLength(gteMatches, 2);
1257
+ assert.isLength(gteMatches, 2, 'find() did not return the expected 2 using $gte.');
1258
1258
  assert.isEqual(gteMatches[0].number, 3);
1259
1259
  assert.isEqual(gteMatches[1].number, 4);
1260
1260
  const ltMatches = yield db.find(this.collectionName, {
1261
1261
  number: { $lt: created[2].number },
1262
1262
  });
1263
- assert.isLength(ltMatches, 2);
1263
+ assert.isLength(ltMatches, 2, 'find() did not return the expected 2 using $lt.');
1264
1264
  assert.isEqual(ltMatches[0].number, 1);
1265
1265
  assert.isEqual(ltMatches[1].number, 2);
1266
1266
  const lteMatches = yield db.find(this.collectionName, {
1267
1267
  number: { $lte: created[2].number },
1268
1268
  });
1269
- assert.isLength(lteMatches, 3);
1269
+ assert.isLength(lteMatches, 3, 'find() did not return the expected 3 using $lte.');
1270
1270
  assert.isEqual(lteMatches[0].number, 1);
1271
1271
  assert.isEqual(lteMatches[1].number, 2);
1272
1272
  assert.isEqual(lteMatches[2].number, 3);
@@ -1275,14 +1275,14 @@ const databaseAssertUtil = {
1275
1275
  $ne: created[0].id,
1276
1276
  },
1277
1277
  });
1278
- assert.isNotEqual(notMatches[0].id, created[0].id);
1279
- assert.isLength(notMatches, created.length - 1);
1278
+ assert.isNotEqual(notMatches[0].id, created[0].id, '$ne did not return the expected results.');
1279
+ assert.isLength(notMatches, created.length - 1, '$ne did not return the expected results.');
1280
1280
  const notNull = yield db.find(this.collectionName, {
1281
1281
  someField: {
1282
1282
  $ne: null,
1283
1283
  },
1284
1284
  });
1285
- assert.isLength(notNull, created.length - 1);
1285
+ assert.isLength(notNull, created.length - 1, '$ne=null did not return the expected results.');
1286
1286
  yield this.shutdown(db);
1287
1287
  });
1288
1288
  },
@@ -1147,19 +1147,19 @@ const databaseAssertUtil = {
1147
1147
  const gteMatches = await db.find(this.collectionName, {
1148
1148
  number: { $gte: created[2].number },
1149
1149
  });
1150
- test_utils_1.assert.isLength(gteMatches, 2);
1150
+ test_utils_1.assert.isLength(gteMatches, 2, 'find() did not return the expected 2 using $gte.');
1151
1151
  test_utils_1.assert.isEqual(gteMatches[0].number, 3);
1152
1152
  test_utils_1.assert.isEqual(gteMatches[1].number, 4);
1153
1153
  const ltMatches = await db.find(this.collectionName, {
1154
1154
  number: { $lt: created[2].number },
1155
1155
  });
1156
- test_utils_1.assert.isLength(ltMatches, 2);
1156
+ test_utils_1.assert.isLength(ltMatches, 2, 'find() did not return the expected 2 using $lt.');
1157
1157
  test_utils_1.assert.isEqual(ltMatches[0].number, 1);
1158
1158
  test_utils_1.assert.isEqual(ltMatches[1].number, 2);
1159
1159
  const lteMatches = await db.find(this.collectionName, {
1160
1160
  number: { $lte: created[2].number },
1161
1161
  });
1162
- test_utils_1.assert.isLength(lteMatches, 3);
1162
+ test_utils_1.assert.isLength(lteMatches, 3, 'find() did not return the expected 3 using $lte.');
1163
1163
  test_utils_1.assert.isEqual(lteMatches[0].number, 1);
1164
1164
  test_utils_1.assert.isEqual(lteMatches[1].number, 2);
1165
1165
  test_utils_1.assert.isEqual(lteMatches[2].number, 3);
@@ -1168,14 +1168,14 @@ const databaseAssertUtil = {
1168
1168
  $ne: created[0].id,
1169
1169
  },
1170
1170
  });
1171
- test_utils_1.assert.isNotEqual(notMatches[0].id, created[0].id);
1172
- test_utils_1.assert.isLength(notMatches, created.length - 1);
1171
+ test_utils_1.assert.isNotEqual(notMatches[0].id, created[0].id, '$ne did not return the expected results.');
1172
+ test_utils_1.assert.isLength(notMatches, created.length - 1, '$ne did not return the expected results.');
1173
1173
  const notNull = await db.find(this.collectionName, {
1174
1174
  someField: {
1175
1175
  $ne: null,
1176
1176
  },
1177
1177
  });
1178
- test_utils_1.assert.isLength(notNull, created.length - 1);
1178
+ test_utils_1.assert.isLength(notNull, created.length - 1, '$ne=null did not return the expected results.');
1179
1179
  await this.shutdown(db);
1180
1180
  },
1181
1181
  async assertCanFindWithNe(connect) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "28.3.273",
6
+ "version": "28.3.275",
7
7
  "files": [
8
8
  "build/**/*",
9
9
  "!build/__tests__",
@@ -67,8 +67,8 @@
67
67
  "@seald-io/nedb": "^4.0.4",
68
68
  "@sprucelabs/error": "^6.0.556",
69
69
  "@sprucelabs/globby": "^2.0.501",
70
- "@sprucelabs/schema": "^30.1.1",
71
- "@sprucelabs/spruce-skill-utils": "^31.1.5",
70
+ "@sprucelabs/schema": "^30.1.2",
71
+ "@sprucelabs/spruce-skill-utils": "^31.1.6",
72
72
  "just-clone": "^6.2.0",
73
73
  "lodash": "^4.17.21",
74
74
  "mongodb": "^6.12.0"
@@ -79,7 +79,7 @@
79
79
  "@sprucelabs/resolve-path-aliases": "^2.0.523",
80
80
  "@sprucelabs/semantic-release": "^5.0.2",
81
81
  "@sprucelabs/test": "^9.0.64",
82
- "@sprucelabs/test-utils": "^5.1.528",
82
+ "@sprucelabs/test-utils": "^5.1.529",
83
83
  "@types/lodash": "^4.17.13",
84
84
  "@types/node": "^22.10.2",
85
85
  "chokidar-cli": "^3.0.0",