Skip to content

Commit c2de1a4

Browse files
committed
fix new cases on master
1 parent 165096c commit c2de1a4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/amazonq/test/e2e/amazonq/explore.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ describe('Amazon Q Explore page', function () {
3636
it('should have correct button IDs', async () => {
3737
const features = ['featuredev', 'testgen', 'doc', 'review', 'gumby']
3838

39-
features.forEach((feature, index) => {
39+
for (const [index, feature] of features.entries()) {
4040
const buttons = (tab.getStore().chatItems ?? [])[index].buttons ?? []
4141
assert.deepStrictEqual(buttons[0].id, `user-guide-${feature}`)
4242
assert.deepStrictEqual(buttons[1].id, `quick-start-${feature}`)
43-
})
43+
}
4444
})
4545
})

packages/amazonq/test/e2e/amazonq/welcome.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ describe('Amazon Q Welcome page', function () {
5151
framework.createTab()
5252

5353
let welcomeCount = 0
54-
framework.getTabs().forEach((tab) => {
54+
for (const tab of framework.getTabs()) {
5555
if (tab.getStore().tabTitle === 'Welcome to Q') {
5656
welcomeCount++
5757
}
58-
})
58+
}
5959
// 3 welcome tabs
6060
assert.deepStrictEqual(welcomeCount, 3)
6161

packages/core/src/test/amazonqFeatureDev/controllers/chat/controller.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,11 +553,11 @@ describe('Controller', () => {
553553
)
554554
})
555555

556-
runs.forEach(({ name, error }) => {
556+
for (const { name, error } of runs) {
557557
it(`sends failure operation telemetry on ${name}`, async () => {
558558
await verifyException(error)
559559
})
560-
})
560+
}
561561
})
562562

563563
describe('processErrorChatMessage', function () {

0 commit comments

Comments
 (0)