Browse Source

feat(friend-support): add random factor to tests

pull/1526/head
nprimo 2 years ago committed by Niccolò Primo
parent
commit
d3fa6a5355
  1. 3
      js/tests/friend-support_test.mjs

3
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)

Loading…
Cancel
Save