mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-02 07:40:28 +00:00
random user
This commit is contained in:
parent
76eb5d6925
commit
4785df81d4
1 changed files with 4 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
||||||
import { beforeAll, expect } from "vitest";
|
import { beforeAll, expect } from "vitest";
|
||||||
|
import { faker } from "@faker-js/faker";
|
||||||
import { UserClient } from "../user";
|
import { UserClient } from "../user";
|
||||||
import { factories } from "./factories";
|
import { factories } from "./factories";
|
||||||
|
|
||||||
|
@ -15,9 +16,9 @@ export async function sharedUserClient(): Promise<UserClient> {
|
||||||
return factories.client.user(cache.token);
|
return factories.client.user(cache.token);
|
||||||
}
|
}
|
||||||
const testUser = {
|
const testUser = {
|
||||||
email: "__test__@__test__.com",
|
email: faker.internet.email(),
|
||||||
name: "__test__",
|
name: faker.person.fullName(),
|
||||||
password: "__test__",
|
password: faker.internet.password(),
|
||||||
token: "",
|
token: "",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue