@sprucelabs/data-stores 28.3.257 → 28.3.258
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.
@@ -1152,9 +1152,9 @@ const databaseAssertUtil = {
|
|
1152
1152
|
},
|
1153
1153
|
assertThrowsWithBadDatabaseName(connect) {
|
1154
1154
|
return __awaiter(this, void 0, void 0, function* () {
|
1155
|
-
const { db, connectionStringWithRandomBadDatabaseName:
|
1155
|
+
const { db, connectionStringWithRandomBadDatabaseName: connectionStringWithRandomBadDatabaseName, badDatabaseName, } = yield connect();
|
1156
1156
|
yield this.shutdown(db);
|
1157
|
-
const err = yield assert.doesThrowAsync(() => connect(
|
1157
|
+
const err = yield assert.doesThrowAsync(() => connect(connectionStringWithRandomBadDatabaseName));
|
1158
1158
|
errorAssert.assertError(err, 'INVALID_DATABASE_NAME', {
|
1159
1159
|
suppliedName: badDatabaseName,
|
1160
1160
|
});
|
@@ -1055,9 +1055,9 @@ const databaseAssertUtil = {
|
|
1055
1055
|
await this.shutdown(db);
|
1056
1056
|
},
|
1057
1057
|
async assertThrowsWithBadDatabaseName(connect) {
|
1058
|
-
const { db, connectionStringWithRandomBadDatabaseName:
|
1058
|
+
const { db, connectionStringWithRandomBadDatabaseName: connectionStringWithRandomBadDatabaseName, badDatabaseName, } = await connect();
|
1059
1059
|
await this.shutdown(db);
|
1060
|
-
const err = await test_utils_1.assert.doesThrowAsync(() => connect(
|
1060
|
+
const err = await test_utils_1.assert.doesThrowAsync(() => connect(connectionStringWithRandomBadDatabaseName));
|
1061
1061
|
test_utils_2.errorAssert.assertError(err, 'INVALID_DATABASE_NAME', {
|
1062
1062
|
suppliedName: badDatabaseName,
|
1063
1063
|
});
|