Skip to content

Commit 5c898b8

Browse files
Merge master into feature/serverlessland
2 parents c9d6526 + 643ae10 commit 5c898b8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/amazonq/test/e2e/amazonq/testGen.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,12 @@ describe('Amazon Q Test Generation', function () {
194194
const viewDiffMessage = chatItems[5]
195195

196196
assert.deepStrictEqual(viewDiffMessage.type, 'answer')
197-
assert.deepStrictEqual(
198-
viewDiffMessage.body,
197+
const expectedEnding =
199198
'Please see the unit tests generated below. Click “View diff” to review the changes in the code editor.'
199+
assert.strictEqual(
200+
viewDiffMessage.body?.includes(expectedEnding),
201+
true,
202+
`View diff message does not contain phrase: ${expectedEnding}`
200203
)
201204
})
202205
})

0 commit comments

Comments
 (0)