Skip to content

Commit e420a97

Browse files
committed
fixing tests and endpoint
1 parent f268b5f commit e420a97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/amazonq/test/unit/amazonqGumby/transformationResultsHandler.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('DiffModel', function () {
5050
testDiffModel.patchFileNodes[0].patchFilePath,
5151
getTestResourceFilePath('resources/files/addedFile.diff')
5252
)
53-
assert(testDiffModel.patchFileNodes[0].label.endsWith(parsedTestDescriptions.content[0].name))
53+
assert(testDiffModel.patchFileNodes[0].label.includes(parsedTestDescriptions.content[0].name))
5454
const change = testDiffModel.patchFileNodes[0].children[0]
5555

5656
assert.strictEqual(change instanceof AddedChangeNode, true)
@@ -81,7 +81,7 @@ describe('DiffModel', function () {
8181
testDiffModel.patchFileNodes[0].patchFilePath,
8282
getTestResourceFilePath('resources/files/modifiedFile.diff')
8383
)
84-
assert(testDiffModel.patchFileNodes[0].label.endsWith(parsedTestDescriptions.content[0].name))
84+
assert(testDiffModel.patchFileNodes[0].label.includes(parsedTestDescriptions.content[0].name))
8585
const change = testDiffModel.patchFileNodes[0].children[0]
8686

8787
assert.strictEqual(change instanceof ModifiedChangeNode, true)

packages/core/src/codewhisperer/client/codewhisperer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export interface CodeWhispererConfig {
3232

3333
export const defaultServiceConfig: CodeWhispererConfig = {
3434
region: 'us-east-1',
35-
endpoint: 'https://rts.alpha-us-west-2.codewhisperer.ai.aws.dev/',
35+
endpoint: 'https://codewhisperer.us-east-1.amazonaws.com/',
3636
}
3737

3838
export function getCodewhispererConfig(): CodeWhispererConfig {

0 commit comments

Comments
 (0)