Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

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

Brooooooklyna97ee60502cf
diff --git a/tests/kit/utils/cloud.ts b/tests/kit/utils/cloud.ts
index 90f8931bc5..44d056f35d 100644
--- a/tests/kit/utils/cloud.ts
+++ b/tests/kit/utils/cloud.ts
@@ -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',
};