chore: Test performance (#5786)
This commit is contained in:
@@ -6,11 +6,8 @@ import {
|
||||
buildCollection,
|
||||
buildAdmin,
|
||||
} from "@server/test/factories";
|
||||
import { setupTestDatabase } from "@server/test/support";
|
||||
import { serialize } from "./index";
|
||||
|
||||
setupTestDatabase();
|
||||
|
||||
describe("admin", () => {
|
||||
it("should allow updating collection but not reading documents", async () => {
|
||||
const team = await buildTeam();
|
||||
|
||||
@@ -6,11 +6,8 @@ import {
|
||||
buildDraftDocument,
|
||||
buildCollection,
|
||||
} from "@server/test/factories";
|
||||
import { setupTestDatabase } from "@server/test/support";
|
||||
import { serialize } from "./index";
|
||||
|
||||
setupTestDatabase();
|
||||
|
||||
describe("read_write collection", () => {
|
||||
it("should allow read write permissions for member", async () => {
|
||||
const team = await buildTeam();
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { buildUser, buildTeam } from "@server/test/factories";
|
||||
import { setupTestDatabase } from "@server/test/support";
|
||||
import { serialize } from "./index";
|
||||
|
||||
setupTestDatabase();
|
||||
|
||||
it("should serialize policy", async () => {
|
||||
const user = await buildUser();
|
||||
const response = serialize(user, user);
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
import { buildUser, buildTeam, buildAdmin } from "@server/test/factories";
|
||||
import {
|
||||
setCloudHosted,
|
||||
setSelfHosted,
|
||||
setupTestDatabase,
|
||||
} from "@server/test/support";
|
||||
import { setCloudHosted, setSelfHosted } from "@server/test/support";
|
||||
import { serialize } from "./index";
|
||||
|
||||
setupTestDatabase();
|
||||
|
||||
it("should allow reading only", async () => {
|
||||
await setSelfHosted();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user