Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tommoor committed May 15, 2024
1 parent 20c2c55 commit bc7d6ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/routes/api/documents/documents.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3930,7 +3930,6 @@ describe("#documents.users", () => {
name: "Alan Kay",
teamId: user.teamId,
}),

buildUser({
name: "Ken",
teamId: user.teamId,
Expand All @@ -3952,7 +3951,7 @@ describe("#documents.users", () => {
createdById: ken.id,
documentId: document.id,
userId: ken.id,
permission: CollectionPermission.ReadWrite,
permission: DocumentPermission.ReadWrite,
});

const res = await server.post("/api/documents.users", {
Expand All @@ -3964,9 +3963,10 @@ describe("#documents.users", () => {
const body = await res.json();

expect(res.status).toBe(200);
expect(body.data.length).toBe(2);
expect(body.data.length).toBe(3);

const memberIds = body.data.map((u: User) => u.id);
expect(memberIds).toContain(user.id);
expect(memberIds).toContain(alan.id);
expect(memberIds).toContain(ken.id);
});
Expand Down

0 comments on commit bc7d6ac

Please sign in to comment.