A few perks

This commit is contained in:
Renan LE CARO 2025-03-19 20:14:55 +01:00
parent 6e6b0991ac
commit 5abbf5263e
15 changed files with 1746 additions and 1087 deletions

11
src/upgrades.test.ts Normal file
View file

@ -0,0 +1,11 @@
import _rawLevelsList from "./data/levels.json";
import {rawUpgrades} from "./upgrades";
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('')
})
})