Check for correct return type

This commit is contained in:
Dev 2023-11-05 12:40:50 +00:00
parent 7e409735d1
commit c12819ce33

View File

@ -964,14 +964,14 @@ describe("ItemHelper", () =>
{ {
const result = itemHelper.isItemTplStackable("fakeTpl"); const result = itemHelper.isItemTplStackable("fakeTpl");
expect(result).toBe(false); expect(result).toBe(undefined);
}); });
it("should return undefined for an empty input", () => it("should return undefined for an empty input", () =>
{ {
const result = itemHelper.isItemTplStackable(""); const result = itemHelper.isItemTplStackable("");
expect(result).toBe(false); expect(result).toBe(undefined);
}); });
}); });
}); });