Skip to content

Commit 7a26461

Browse files
committed
fix lint and broken test
1 parent 8027bbb commit 7a26461

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/utilities/letter-test-data/src/__test__/helpers/s3-helpers.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ describe("uploadFile", () => {
6464
Key: `${supplierId}/${targetFilename}`,
6565
Body: Buffer.from("fake-pdf-bytes"),
6666
ContentType: "application/pdf",
67+
Metadata: {
68+
"sha256hash": "50af8d443ccf8b2777b72a9169cd0665ef4be5335b8f53543556fa0d320b135b",
69+
}
6770
});
6871
});
6972

scripts/utilities/letter-test-data/src/helpers/s3-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default async function uploadFile(
1313
const s3 = new S3Client();
1414
const filePath = path.join(__dirname, "..", "test-letters", sourceFilename);
1515
const fileContent = readFileSync(filePath);
16-
const hash = createHash('sha256').update(fileContent).digest('hex');
16+
const hash = createHash("sha256").update(fileContent).digest("hex");
1717

1818
const uploadParams = {
1919
Bucket: bucketName,

0 commit comments

Comments
 (0)