From 75f17f5c1251a9d5b7d4b8cd077063894528ea51 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Tue, 22 Oct 2024 13:53:31 +0100 Subject: [PATCH] update test to check for user id --- packages/server/src/api/routes/tests/rowAction.spec.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/server/src/api/routes/tests/rowAction.spec.ts b/packages/server/src/api/routes/tests/rowAction.spec.ts index d3b90f6f6b..9f9a33c73b 100644 --- a/packages/server/src/api/routes/tests/rowAction.spec.ts +++ b/packages/server/src/api/routes/tests/rowAction.spec.ts @@ -767,7 +767,6 @@ describe("/rowsActions", () => { it("can trigger an automation given valid data", async () => { expect(await getAutomationLogs()).toBeEmpty() await config.api.rowAction.trigger(viewId, rowAction.id, { rowId }) - const automationLogs = await getAutomationLogs() expect(automationLogs).toEqual([ expect.objectContaining({ @@ -783,7 +782,10 @@ describe("/rowsActions", () => { ...(await config.api.table.get(tableId)), views: expect.anything(), }, - user: expect.anything(), + user: expect.objectContaining({ + _id: "ro_ta_users_" + config.getUser()._id, + }), + automation: expect.objectContaining({ _id: rowAction.automationId, }),