Skip to content

Commit e915e0b

Browse files
committed
test: fix fixture import paths
1 parent 5c9f055 commit e915e0b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

packages/middleware-sdk-ec2/src/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { HttpRequest } from "@smithy/protocol-http";
22
import { EndpointV2 } from "@smithy/types";
33
import { beforeEach, describe, expect, test as it, vi } from "vitest";
44

5-
import { credentials, MockSha256, region } from "./fixture";
5+
import { credentials, MockSha256, region } from "./fixture.spec";
66
import { copySnapshotPresignedUrlMiddleware } from "./index";
77

88
const nextHandler = vi.fn();

packages/middleware-sdk-rds/src/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { beforeEach, describe, expect, test as it, vi } from "vitest";
22

33
import { crossRegionPresignedUrlMiddleware } from "./";
4-
import { credentials, endpoint, MockSha256, region } from "./fixture";
4+
import { credentials, endpoint, MockSha256, region } from "./fixture.spec";
55

66
const nextHandler = vi.fn();
77
const arn = "arn:aws:rds:src-region:000000000000:src-snapshot:dist-snapshot";

packages/middleware-signing/src/awsAuthConfiguration.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ describe("AuthConfig", () => {
118118
for (let i = 0; i < repeats; i++) {
119119
await signer.sign(request);
120120
}
121-
console.log("what is credentials", credentials);
121+
expect(await credentials()).toEqual({
122+
accessKeyId: "key",
123+
secretAccessKey: "secret",
124+
});
122125
expect(spy).toBeCalledTimes(2);
123126
});
124127
});

0 commit comments

Comments
 (0)