Fix achievement test file

This commit is contained in:
Sirz Benjie 2025-08-20 08:18:13 -05:00
parent 336da565ed
commit 8ed32ed31e
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -133,7 +133,7 @@ describe("RibbonAchv", () => {
}); });
it("should validate the achievement based on the ribbon amount", () => { it("should validate the achievement based on the ribbon amount", () => {
const ribbonAchv = new RibbonAchv("", "Test Ribbon Achievement", 10, "ribbon_icon", 10); const ribbonAchv = new RibbonAchv("", 10, "ribbon_icon", 10);
scene.gameData.gameStats.ribbonsOwned = 5; scene.gameData.gameStats.ribbonsOwned = 5;
expect(ribbonAchv.validate([])).toBe(false); expect(ribbonAchv.validate([])).toBe(false);
@ -187,7 +187,7 @@ describe("LevelAchv", () => {
}); });
it("should validate the achievement based on the level", () => { it("should validate the achievement based on the level", () => {
const levelAchv = new LevelAchv("", "Test Level Achievement", 100, "level_icon", 10); const levelAchv = new LevelAchv("", 100, "level_icon", 10);
const integerHolder = new NumberHolder(50); const integerHolder = new NumberHolder(50);
expect(levelAchv.validate([integerHolder])).toBe(false); expect(levelAchv.validate([integerHolder])).toBe(false);