Skip to content

Commit a155f08

Browse files
committed
fix: replace forEach with for...of loop to satisfy ESLint rule
1 parent 7ed2d30 commit a155f08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/amazonq/test/unit/amazonq/apps/inline/completion.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,11 +452,11 @@ describe('InlineCompletionManager', () => {
452452
const completionSessionResult = call.args[1].completionSessionResult
453453
const sessionResults = Object.values(completionSessionResult) as any[]
454454
assert.strictEqual(sessionResults.length, 2) // Both mockSuggestions should be included
455-
sessionResults.forEach((result) => {
455+
for (const result of sessionResults) {
456456
assert.strictEqual(result.seen, false)
457457
assert.strictEqual(result.accepted, false)
458458
assert.strictEqual(result.discarded, true)
459-
})
459+
}
460460
})
461461

462462
it('should only emit telemetry for non-inline-edit items when edit is active', async () => {

0 commit comments

Comments
 (0)