fix(tests): faker usage

This commit is contained in:
kolaente
2024-10-29 10:34:40 +01:00
committed by konrad
parent 2c8e636561
commit aad9d8dffc
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ export class LinkShareFactory extends Factory {
return {
id: '{increment}',
hash: faker.random.word(32),
hash: faker.lorem.word(32),
project_id: 1,
right: 0,
sharing_type: 0,

View File

@@ -10,7 +10,7 @@ export class UserFactory extends Factory {
return {
id: '{increment}',
username: faker.lorem.word(10) + faker.datatype.uuid(),
username: faker.lorem.word(10) + faker.string.uuid(),
password: '$2a$14$dcadBoMBL9jQoOcZK8Fju.cy0Ptx2oZECkKLnaa8ekRoTFe1w7To.', // 1234
status: 0,
issuer: 'local',