mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Remove extra mock from test
This commit is contained in:
@@ -66,14 +66,6 @@ describe("AwsBedrockHandler", () => {
|
|||||||
|
|
||||||
describe("AWS SDK client configuration", () => {
|
describe("AWS SDK client configuration", () => {
|
||||||
it("should configure client with profile credentials when profile mode is enabled", async () => {
|
it("should configure client with profile credentials when profile mode is enabled", async () => {
|
||||||
// Import the fromIni function to mock it
|
|
||||||
jest.mock("@aws-sdk/credential-providers", () => ({
|
|
||||||
fromIni: jest.fn().mockReturnValue({
|
|
||||||
accessKeyId: "profile-access-key",
|
|
||||||
secretAccessKey: "profile-secret-key",
|
|
||||||
}),
|
|
||||||
}))
|
|
||||||
|
|
||||||
const handlerWithProfile = new AwsBedrockHandler({
|
const handlerWithProfile = new AwsBedrockHandler({
|
||||||
apiModelId: "anthropic.claude-3-5-sonnet-20241022-v2:0",
|
apiModelId: "anthropic.claude-3-5-sonnet-20241022-v2:0",
|
||||||
awsRegion: "us-east-1",
|
awsRegion: "us-east-1",
|
||||||
|
|||||||
Reference in New Issue
Block a user