mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-23 05:26:15 -04:00
Build 29040298
This commit is contained in:
parent
dce41a43ec
commit
d2266de792
13 changed files with 2155 additions and 2103 deletions
|
@ -1,11 +1,11 @@
|
|||
|
||||
import _rawLevelsList from "./data/levels.json";
|
||||
import {rawUpgrades} from "./upgrades";
|
||||
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('')
|
||||
})
|
||||
})
|
||||
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