A full-featured CRM built with React, shadcn/ui, and Supabase.
fix tests
Jean-Baptiste Kaiser7b4fe3a7da55
diff --git a/supabase/functions/postmark/addNoteToContact.test.ts b/supabase/functions/postmark/addNoteToContact.test.tsindex 85e5cedd..f5b57bb2 100644--- a/supabase/functions/postmark/addNoteToContact.test.ts+++ b/supabase/functions/postmark/addNoteToContact.test.ts@@ -31,7 +31,7 @@ describe("addNoteToContact", () => {};mockFrom.mockReturnValue({select: () => ({- eq: () => ({+ or: () => ({maybeSingle: () =>Promise.resolve({ data: existingCompany, error: null }),}),@@ -52,7 +52,7 @@ describe("addNoteToContact", () => {it("throws when fetching the company fails", async () => {mockFrom.mockReturnValue({select: () => ({- eq: () => ({+ or: () => ({maybeSingle: () =>Promise.resolve({ data: null, error: { message: "DB error" } }),}),@@ -95,7 +95,7 @@ describe("addNoteToContact", () => {.mockReturnValueOnce({// first call: fetchselect: () => ({- eq: () => ({+ or: () => ({maybeSingle: () => Promise.resolve({ data: null, error: null }),}),}),@@ -123,7 +123,7 @@ describe("addNoteToContact", () => {mockFrom.mockReturnValueOnce({select: () => ({- eq: () => ({+ or: () => ({maybeSingle: () => Promise.resolve({ data: null, error: null }),}),}),@@ -226,7 +226,7 @@ describe("addNoteToContact", () => {.mockReturnValueOnce({// 2nd call: fetch company → foundselect: () => ({- eq: () => ({+ or: () => ({maybeSingle: () =>Promise.resolve({ data: existingCompany, error: null }),}),@@ -300,7 +300,7 @@ describe("addNoteToContact", () => {}).mockReturnValueOnce({select: () => ({- eq: () => ({+ or: () => ({maybeSingle: () =>Promise.resolve({ data: existingCompany, error: null }),}),