fix: visible groups (#2729)
* updated readme to give some light testing instructions * updated tests to accept new behavior for group memberships * use test factories in more places * add debug logs for mailer events in development
This commit is contained in:
@@ -1059,7 +1059,7 @@ describe("#documents.search", () => {
|
||||
});
|
||||
|
||||
it("should strip junk from search term", async () => {
|
||||
const { user } = await seed();
|
||||
const user = await buildUser();
|
||||
const firstResult = await buildDocument({
|
||||
title: "search term",
|
||||
text: "this is some random text of the document body",
|
||||
@@ -1137,7 +1137,7 @@ describe("#documents.search", () => {
|
||||
});
|
||||
|
||||
it("should not return draft documents created by other users", async () => {
|
||||
const { user } = await seed();
|
||||
const user = await buildUser();
|
||||
await buildDocument({
|
||||
title: "search term",
|
||||
text: "search term",
|
||||
@@ -1176,7 +1176,7 @@ describe("#documents.search", () => {
|
||||
});
|
||||
|
||||
it("should return archived documents if chosen", async () => {
|
||||
const { user } = await seed();
|
||||
const user = await buildUser();
|
||||
const document = await buildDocument({
|
||||
title: "search term",
|
||||
text: "search term",
|
||||
@@ -1230,7 +1230,11 @@ describe("#documents.search", () => {
|
||||
});
|
||||
|
||||
it("should return documents for a specific private collection", async () => {
|
||||
const { user, collection } = await seed();
|
||||
const user = await buildUser();
|
||||
const collection = await buildCollection({
|
||||
teamId: user.teamId,
|
||||
});
|
||||
|
||||
collection.permission = null;
|
||||
await collection.save();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user