We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b83d919 commit 4a5e9c3Copy full SHA for 4a5e9c3
lambdas/sftp-letters/src/domain/test-data.ts
@@ -1,5 +1,6 @@
1
import { z } from 'zod';
2
import { parse } from 'csv-parse/sync';
3
+import { staticPdsExampleData } from './synthetic-batch-data';
4
5
export function parseTestPersonalisation(csv: string) {
6
const [, ...rows] = parse(csv);
@@ -9,7 +10,7 @@ export function parseTestPersonalisation(csv: string) {
9
10
.min(1)
11
.parse(rows);
12
- return Array.from({ length: 3 }, (_, colIdx) =>
13
+ return Array.from({ length: staticPdsExampleData.length }, (_, colIdx) =>
14
Object.fromEntries(
15
input.map(([field], rowIdx) => [field, input[rowIdx][colIdx + 1]])
16
)
0 commit comments