mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-22 21:16:14 -04:00
A few perks
This commit is contained in:
parent
6e6b0991ac
commit
5abbf5263e
15 changed files with 1746 additions and 1087 deletions
11
src/upgrades.test.ts
Normal file
11
src/upgrades.test.ts
Normal 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('')
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue