mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
adapt name and random faking to updates faker api
This commit is contained in:
parent
47d79544c6
commit
e2654de55d
@ -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',
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user