Skip to content

Commit d8a082a

Browse files
committed
Update tests setup
1 parent 9559acd commit d8a082a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/question-service/tests/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ beforeAll(async () => {
1212
afterEach(async () => {
1313
const collections = await mongoose.connection.db?.collections();
1414
if (collections) {
15-
for (let collection of collections) {
15+
for (const collection of collections) {
1616
await collection.deleteMany({});
1717
}
1818
}

backend/user-service/tests/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ beforeAll(async () => {
1212
afterEach(async () => {
1313
const collections = await mongoose.connection.db?.collections();
1414
if (collections) {
15-
for (let collection of collections) {
15+
for (const collection of collections) {
1616
await collection.deleteMany({});
1717
}
1818
}

0 commit comments

Comments
 (0)