Skip to content

Commit b55d115

Browse files
committed
CCM-10333 Add client ID and user ID to template API payload
1 parent ba3e3df commit b55d115

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test-team/helpers/factories/template-api-payload-factory.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
pdfLetterMultipart,
55
type PdfUploadPartSpec,
66
} from 'nhs-notify-web-template-management-test-helper-utils';
7+
import { randomUUID } from 'node:crypto';
78

89
type TemplatePayload = CreateTemplatePayload | UpdateTemplatePayload;
910

@@ -30,6 +31,8 @@ type TemplateOutput<
3031

3132
const createTemplateBaseData = (templateType: unknown) => ({
3233
name: faker.word.noun(),
34+
clientId: randomUUID(),
35+
userId: randomUUID(),
3336
message: faker.word.words(5),
3437
...(templateType === 'EMAIL' && {
3538
subject: faker.word.interjection(),

0 commit comments

Comments
 (0)