fix(test): resolve typescript undefined errors in inventory service tests

This commit is contained in:
syntaxbullet
2026-01-06 18:25:18 +01:00
parent 8280111b66
commit dd62336571

View File

@@ -273,10 +273,10 @@ describe("inventoryService", () => {
expect(mockLimit).toHaveBeenCalledWith(20);
expect(result).toHaveLength(2);
expect(result[0].name).toBe("Common Sword (5) [Common]");
expect(result[0].value).toBe(1);
expect(result[1].name).toBe("Epic Shield (1) [Epic]");
expect(result[1].value).toBe(2);
expect(result[0]?.name).toBe("Common Sword (5) [Common]");
expect(result[0]?.value).toBe(1);
expect(result[1]?.name).toBe("Epic Shield (1) [Epic]");
expect(result[1]?.value).toBe(2);
});
});
});