Skip to content

Commit 40a8479

Browse files
committed
fix tests
1 parent 06df3c6 commit 40a8479

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/linkry.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ import {
1313
GetSecretValueCommand,
1414
SecretsManagerClient,
1515
} from "@aws-sdk/client-secrets-manager";
16-
import { CloudFrontKeyValueStoreClient } from "@aws-sdk/client-cloudfront-keyvaluestore";
1716

1817
import { secretJson, secretObject } from "./secret.testdata.js";
1918
import supertest from "supertest";
20-
import { environmentConfig } from "../../src/common/config.js";
2119

2220
const ddbMock = mockClient(DynamoDBClient);
2321
const smMock = mockClient(SecretsManagerClient);
@@ -33,7 +31,9 @@ vi.mock("../../src/api/functions/cloudfrontKvStore.js", async () => {
3331
getKey: vi.fn().mockResolvedValue("https://www.acm.illinois.edu"),
3432
getLinkryKvArn: vi
3533
.fn()
36-
.mockResolvedValue(environmentConfig["dev"].LinkryCloudfrontKvArn),
34+
.mockResolvedValue(
35+
"arn:aws:cloudfront::1234567890:key-value-store/bb90421c-e923-4bd7-a42a-7281150389c3s",
36+
),
3737
};
3838
});
3939

0 commit comments

Comments
 (0)