mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-25 06:26:16 -04:00
12 lines
339 B
TypeScript
12 lines
339 B
TypeScript
![]() |
|
||
|
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('')
|
||
|
})
|
||
|
})
|