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(); });