We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0251e0b + 643ae10 commit 25d7820Copy full SHA for 25d7820
packages/amazonq/test/e2e/amazonq/testGen.test.ts
@@ -194,9 +194,12 @@ describe('Amazon Q Test Generation', function () {
194
const viewDiffMessage = chatItems[5]
195
196
assert.deepStrictEqual(viewDiffMessage.type, 'answer')
197
- assert.deepStrictEqual(
198
- viewDiffMessage.body,
+ const expectedEnding =
199
'Please see the unit tests generated below. Click “View diff” to review the changes in the code editor.'
+ assert.strictEqual(
200
+ viewDiffMessage.body?.includes(expectedEnding),
201
+ true,
202
+ `View diff message does not contain phrase: ${expectedEnding}`
203
)
204
})
205
0 commit comments