From d3fa6a53558e7b27f8d3c3f7a36c6d41b1aaca11 Mon Sep 17 00:00:00 2001 From: nprimo Date: Fri, 2 Dec 2022 12:50:34 +0000 Subject: [PATCH] feat(friend-support): add random factor to tests --- js/tests/friend-support_test.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/tests/friend-support_test.mjs b/js/tests/friend-support_test.mjs index 7f708acae..5d4bc5264 100644 --- a/js/tests/friend-support_test.mjs +++ b/js/tests/friend-support_test.mjs @@ -52,7 +52,8 @@ tests.push(async ({ path, ctx: { server } }) => { tests.push(async ({ eq, ctx, randStr }) => { // test for one guest - const expBody = { message: 'ciao' } + const randMsg = randStr() + const expBody = { message: randMsg } const files = [[`mario_${ctx.randLastName}.json`, expBody]] const dirName = 'guests' const dirPath = join(ctx.tmpPath, dirName)