Skip to content

Commit

Permalink
fix: use simple for as suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
makelicious committed Dec 18, 2024
1 parent 1893583 commit 5084029
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/events/src/router/events.get.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test('Returns empty list when no events', async () => {
})

test('Returns multiple events', async () => {
for await (const _ of Array(10).keys()) {
for (let i = 0; i < 10; i++) {
await client.event.create(generator.event.create())
}

Expand Down
2 changes: 1 addition & 1 deletion packages/events/src/service/indexing/indexing.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test('indexes all records from MongoDB with one function call', async () => {

await indexAllEvents()

for await (const _ of Array(2).keys()) {
for (let i = 0; i < 2; i++) {
await client.event.create(generator.event.create())
}

Expand Down

0 comments on commit 5084029

Please sign in to comment.