From 77d1f9250c64164f898915ad33d1584e0c5813c1 Mon Sep 17 00:00:00 2001 From: Dean Date: Wed, 10 May 2023 12:52:54 +0100 Subject: [PATCH] Updated import row test to evaluate the name and _id fields on the table instead of the entire object. --- packages/server/src/api/routes/tests/table.spec.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/server/src/api/routes/tests/table.spec.js b/packages/server/src/api/routes/tests/table.spec.js index d28f2232ee..9c6980c1d7 100644 --- a/packages/server/src/api/routes/tests/table.spec.js +++ b/packages/server/src/api/routes/tests/table.spec.js @@ -167,7 +167,10 @@ describe("/tables", () => { expect(events.table.created).not.toHaveBeenCalled() expect(events.rows.imported).toBeCalledTimes(1) - expect(events.rows.imported).toBeCalledWith(table, 1) + expect(events.rows.imported).toBeCalledWith(expect.objectContaining({ + name: "TestTable", + _id: table._id + }), 1) }) })