forked from syntaxbullet/AuroraBot-discord
fix(test): resolve typescript undefined errors in inventory service tests
This commit is contained in:
@@ -273,10 +273,10 @@ describe("inventoryService", () => {
|
|||||||
expect(mockLimit).toHaveBeenCalledWith(20);
|
expect(mockLimit).toHaveBeenCalledWith(20);
|
||||||
|
|
||||||
expect(result).toHaveLength(2);
|
expect(result).toHaveLength(2);
|
||||||
expect(result[0].name).toBe("Common Sword (5) [Common]");
|
expect(result[0]?.name).toBe("Common Sword (5) [Common]");
|
||||||
expect(result[0].value).toBe(1);
|
expect(result[0]?.value).toBe(1);
|
||||||
expect(result[1].name).toBe("Epic Shield (1) [Epic]");
|
expect(result[1]?.name).toBe("Epic Shield (1) [Epic]");
|
||||||
expect(result[1].value).toBe(2);
|
expect(result[1]?.value).toBe(2);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user