Skip to content

Commit

Permalink
fixing tests and endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ntarakad-aws committed Nov 17, 2024
1 parent f268b5f commit e420a97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('DiffModel', function () {
testDiffModel.patchFileNodes[0].patchFilePath,
getTestResourceFilePath('resources/files/addedFile.diff')
)
assert(testDiffModel.patchFileNodes[0].label.endsWith(parsedTestDescriptions.content[0].name))
assert(testDiffModel.patchFileNodes[0].label.includes(parsedTestDescriptions.content[0].name))
const change = testDiffModel.patchFileNodes[0].children[0]

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

assert.strictEqual(change instanceof ModifiedChangeNode, true)
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/codewhisperer/client/codewhisperer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface CodeWhispererConfig {

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

export function getCodewhispererConfig(): CodeWhispererConfig {
Expand Down

0 comments on commit e420a97

Please sign in to comment.