breakout71/src/upgrades.test.ts

12 lines
364 B
TypeScript
Raw Normal View History

2025-03-19 20:14:55 +01:00
import _rawLevelsList from "./data/levels.json";
2025-03-19 21:58:50 +01:00
import { rawUpgrades } from "./upgrades";
2025-03-19 20:14:55 +01:00
2025-03-19 21:58:50 +01:00
describe("rawUpgrades", () => {
it("has an icon for each upgrade", () => {
const missingIcon = rawUpgrades
.map((u) => u.id)
.filter((id) => !_rawLevelsList.find((l) => l.name === "icon:" + id));
expect(missingIcon.join(", ")).toEqual("");
});
});