Updated import row test to evaluate the name and _id fields on the table instead of the entire object.

This commit is contained in:
Dean 2023-05-10 12:52:54 +01:00
parent 1e6652dc39
commit 77d1f9250c
1 changed files with 4 additions and 1 deletions

View File

@ -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)
})
})