From 1d494353dcdd4c20a7619af7377a5b8787a235c3 Mon Sep 17 00:00:00 2001 From: aelassas Date: Sun, 17 Nov 2024 23:19:29 +0100 Subject: [PATCH] Update user.test.ts --- api/tests/user.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/tests/user.test.ts b/api/tests/user.test.ts index be8f85401..b141a04c9 100644 --- a/api/tests/user.test.ts +++ b/api/tests/user.test.ts @@ -172,7 +172,11 @@ describe('POST /api/create-user', () => { if (!await helper.exists(contractFile)) { await fs.copyFile(CONTRACT1_PATH, contractFile) } - const contracts = [{ language: 'en', file: contractFileName }] + const contracts = [ + { language: 'en', file: contractFileName }, + { language: 'fr', file: null }, + { language: 'es', file: `${nanoid()}.pdf` }, + ] let payload: bookcarsTypes.CreateUserPayload = { email: USER2_EMAIL,