Compare commits

...

1 Commits

Author SHA1 Message Date
Tom Moor bd0111785a test: Fix flaky availableTeams test 2025-02-26 22:13:08 -05:00
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -79,6 +79,7 @@ describe("user model", () => {
expect(response.length).toEqual(1);
expect(response[0]).toEqual(collection.id);
});
it("should return read collections", async () => {
const team = await buildTeam();
const user = await buildUser({
@@ -92,6 +93,7 @@ describe("user model", () => {
expect(response.length).toEqual(1);
expect(response[0]).toEqual(collection.id);
});
it("should not return private collections", async () => {
const team = await buildTeam();
const user = await buildUser({
@@ -104,6 +106,7 @@ describe("user model", () => {
const response = await user.collectionIds();
expect(response.length).toEqual(0);
});
it("should not return private collection with membership", async () => {
const team = await buildTeam();
const user = await buildUser({
+1
View File
@@ -614,6 +614,7 @@ class User extends ParanoidModel<
where: { email: this.email },
},
],
order: [["createdAt", "ASC"]],
});
// hooks