Skip to content

Commit b0c8f7d

Browse files
committed
fix tests and update script comments
1 parent 64c32ce commit b0c8f7d

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe("Create letter helpers", () => {
4444
expect(mockedUploadFile).toHaveBeenCalledWith(
4545
"bucketName",
4646
"supplierId",
47-
"../test-letters/test-letter-standard.pdf",
47+
"test-letter-standard.pdf",
4848
"targetFilename",
4949
);
5050
expect(mockPutLetter).toHaveBeenCalledWith({
@@ -104,6 +104,9 @@ describe("Create letter helpers", () => {
104104
supplierId: "supplierId",
105105
updatedAt: "2020-02-01T00:00:00.000Z",
106106
url: "s3://bucketName/supplierId/targetFilename",
107+
billingRef: "specificationId",
108+
source: "/data-plane/letter-rendering/letter-test-data",
109+
subject: "supplier-api/letter-test-data/letterId",
107110
});
108111
});
109112

scripts/utilities/letter-test-data/src/create-batch-letters.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
117117
# Change to the project directory
118118
cd "$PROJECT_DIR"
119119

120-
# Define the three batches with different specification and group IDs
120+
# Define the batches with different specification and group IDs
121121
BATCHES=(
122122
"integration-specification-english:group-english:test-letter-standard:${COUNT}"
123123
"integration-specification-braille:group-accessible:test-letter-standard:${COUNT}"
@@ -135,7 +135,7 @@ echo ""
135135

136136
# Create each batch
137137
for batch in "${BATCHES[@]}"; do
138-
# Parse specification-id and group-id from the batch definition
138+
# Parse specification-id, group-id and batch volume from the batch definition
139139
IFS=':' read -r SPEC_ID GROUP_ID TEST_LETTER BATCH_COUNT <<< "$batch"
140140

141141
echo "[$BATCH_COUNTER/$TOTAL_BATCHES] Creating batch with specification-id: $SPEC_ID, group-id: $GROUP_ID-$SUPPLIER_ID"

0 commit comments

Comments
 (0)