mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-24 18:14:02 +03:00
test(server): fix fakerjs deprecated warning (#8834)
This commit is contained in:
parent
84cfcb193f
commit
a97ee60502
@ -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',
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user