mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-27 19:15:40 +00:00
remove in sync test
This commit is contained in:
parent
3ff7980cd4
commit
e44eaafd15
1 changed files with 0 additions and 15 deletions
|
@ -2,7 +2,6 @@ import { faker } from "@faker-js/faker";
|
||||||
import { describe, test, expect } from "vitest";
|
import { describe, test, expect } from "vitest";
|
||||||
import { factories } from "../factories";
|
import { factories } from "../factories";
|
||||||
import { sharedUserClient } from "../test-utils";
|
import { sharedUserClient } from "../test-utils";
|
||||||
import { currencies } from "~~/lib/data/currency";
|
|
||||||
|
|
||||||
describe("first time user workflow (register, login, join group)", () => {
|
describe("first time user workflow (register, login, join group)", () => {
|
||||||
test("user should be able to update group", async () => {
|
test("user should be able to update group", async () => {
|
||||||
|
@ -29,20 +28,6 @@ describe("first time user workflow (register, login, join group)", () => {
|
||||||
expect(group.currency).toBe("USD");
|
expect(group.currency).toBe("USD");
|
||||||
});
|
});
|
||||||
|
|
||||||
test("currencies should be in sync with backend", async () => {
|
|
||||||
const { client } = await factories.client.singleUse();
|
|
||||||
|
|
||||||
for (const currency of currencies) {
|
|
||||||
const { response, data: group } = await client.group.update({
|
|
||||||
name: faker.person.firstName(),
|
|
||||||
currency: currency.code,
|
|
||||||
});
|
|
||||||
|
|
||||||
expect(response.status).toBe(200);
|
|
||||||
expect(group.currency).toBe(currency.code);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
test("user should be able to join create join token and have user signup", async () => {
|
test("user should be able to join create join token and have user signup", async () => {
|
||||||
const api = factories.client.public();
|
const api = factories.client.public();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue