test(server): fix fakerjs deprecated warning (#8834)

This commit is contained in:
Brooooooklyn 2024-11-15 14:11:57 +00:00
parent 84cfcb193f
commit a97ee60502
No known key found for this signature in database
GPG Key ID: 30B1140CE1C07C99

View File

@ -107,7 +107,7 @@ export async function createRandomUser(): Promise<{
}> {
const startTime = Date.now();
const user = {
name: faker.internet.userName(),
name: faker.internet.username(),
email: faker.internet.email().toLowerCase(),
password: '123456',
};
@ -157,7 +157,7 @@ export async function createRandomAIUser(): Promise<{
id: string;
}> {
const user = {
name: faker.internet.userName(),
name: faker.internet.username(),
email: faker.internet.email().toLowerCase(),
password: '123456',
};