Skip to content

Commit 78ed850

Browse files
committed
fix
1 parent b771bc7 commit 78ed850

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

lambda/proxy.test.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ const fileMap: Record<string, string> = {
5252
"a.wildcard.*.host",
5353
]),
5454
};
55-
const readFileFromLayerMock = mock((fileName: string) => {
56-
console.log("the file name", fileName);
57-
return fileMap[fileName];
58-
});
55+
const readFileFromLayerMock = mock((fileName: string) => fileMap[fileName]);
5956
mock.module("./file-readers", () => ({
6057
readFileFromLayer: readFileFromLayerMock,
6158
getPublicCerts: mock(),
@@ -235,10 +232,9 @@ describe("proxy", () => {
235232
"ca.pem": "some ca",
236233
"cert.pem": "some cert",
237234
};
238-
readFileFromLayerMock.mockImplementation((fileName: string) => {
239-
console.log("the file name is", fileName);
240-
return newFileMap[fileName];
241-
});
235+
readFileFromLayerMock.mockImplementation(
236+
(fileName: string) => newFileMap[fileName],
237+
);
242238
const destinationUrl = "https://approved.host/github-webhook/";
243239
const endpointId = encodeURIComponent(destinationUrl);
244240
const event: APIGatewayProxyWithLambdaAuthorizerEvent<any> = {

0 commit comments

Comments
 (0)