Skip to content

Commit 4a5e9c3

Browse files
committed
cleanup
1 parent b83d919 commit 4a5e9c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lambdas/sftp-letters/src/domain/test-data.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { z } from 'zod';
22
import { parse } from 'csv-parse/sync';
3+
import { staticPdsExampleData } from './synthetic-batch-data';
34

45
export function parseTestPersonalisation(csv: string) {
56
const [, ...rows] = parse(csv);
@@ -9,7 +10,7 @@ export function parseTestPersonalisation(csv: string) {
910
.min(1)
1011
.parse(rows);
1112

12-
return Array.from({ length: 3 }, (_, colIdx) =>
13+
return Array.from({ length: staticPdsExampleData.length }, (_, colIdx) =>
1314
Object.fromEntries(
1415
input.map(([field], rowIdx) => [field, input[rowIdx][colIdx + 1]])
1516
)

0 commit comments

Comments
 (0)