Skip to content

Commit ecf7c97

Browse files
committed
fix tests and update script comments
1 parent 30ef531 commit ecf7c97

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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
@@ -47,7 +47,7 @@ describe("Create letter helpers", () => {
4747
expect(mockedUploadFile).toHaveBeenCalledWith(
4848
"bucketName",
4949
"supplierId",
50-
"../test-letters/test-letter-standard.pdf",
50+
"test-letter-standard.pdf",
5151
"targetFilename",
5252
);
5353
expect(mockPutLetter).toHaveBeenCalledWith({
@@ -107,6 +107,9 @@ describe("Create letter helpers", () => {
107107
supplierId: "supplierId",
108108
updatedAt: "2020-02-01T00:00:00.000Z",
109109
url: "s3://bucketName/supplierId/targetFilename",
110+
billingRef: "specificationId",
111+
source: "/data-plane/letter-rendering/letter-test-data",
112+
subject: "supplier-api/letter-test-data/letterId",
110113
});
111114
});
112115

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)