adapt name and random faking to updates faker api

This commit is contained in:
mahula 2024-04-29 08:36:34 +02:00
parent 47d79544c6
commit e2654de55d
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ Factory.define('basicUser')
.option('password', '1234')
.attrs({
id: uuid,
name: faker.name.fullName,
name: faker.person.fullName,
password: '1234',
role: 'user',
termsAndConditionsAgreedVersion: '0.0.1',

View File

@ -61,7 +61,7 @@ const helpers = {
},
fakeUser(n) {
return new Array(n || 1).fill(0).map(() => {
const name = faker.person.person.fullName()
const name = faker.person.fullName()
return {
id: faker.string.uuid(),
name,