From 571b3080888086585eafb693371cf07fbcdfa702 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Sun, 25 Feb 2024 16:01:06 -0600 Subject: [PATCH] fix assertions --- frontend/lib/api/__test__/user/items.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/lib/api/__test__/user/items.test.ts b/frontend/lib/api/__test__/user/items.test.ts index d4aa894..36cc898 100644 --- a/frontend/lib/api/__test__/user/items.test.ts +++ b/frontend/lib/api/__test__/user/items.test.ts @@ -188,8 +188,8 @@ describe("user should be able to create an item and add an attachment", () => { const names = fullpath.map(p => p.name); - expect(names).toHaveLength(locations.length); - expect(names).toEqual(locations); + expect(names).toHaveLength(locations.length + 1); + expect(names).toEqual([...locations, item.name]); cleanup(); });