mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-06-15 18:54:47 -04:00
wip
This commit is contained in:
parent
cb90fef3a9
commit
401e9b4548
22 changed files with 1024 additions and 959 deletions
|
@ -30,18 +30,6 @@ describe("json data checks", () => {
|
|||
it("Has a few colors", () => {
|
||||
expect(Object.keys(_palette).length).toBeGreaterThan(10);
|
||||
});
|
||||
it("Avoids dark bricks on dark bg", () => {
|
||||
const levelsWithDarkBricksAndBG = _rawLevelsList
|
||||
.filter((l) => !l.color && !l.name.match(/^icon:/))
|
||||
.map((l) => ({
|
||||
name: l.name,
|
||||
bricks: l.bricks.split("").filter((c) => c !== "_").length,
|
||||
darkBricks: l.bricks.split("").filter((c) => c === "g").length,
|
||||
}))
|
||||
.filter((l) => l.darkBricks > 0.05 * l.bricks);
|
||||
|
||||
expect(levelsWithDarkBricksAndBG).toEqual([]);
|
||||
});
|
||||
it("Has an _appVersion", () => {
|
||||
expect(parseInt(_appVersion)).toBeGreaterThan(2000);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue