Skip to content

Commit

Permalink
Fix test data
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismaltby committed Feb 4, 2025
1 parent 627e6c5 commit 2b54ec6
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions test/compiler/compileData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ test("should include extra backgrounds when using common tilesets", async () =>
imageWidth: 160,
imageHeight: 144,
filename: "test_img.png",
symbol: "bg2",
is360: false,
},
{
Expand All @@ -554,6 +555,7 @@ test("should include extra backgrounds when using common tilesets", async () =>
imageWidth: 160,
imageHeight: 144,
filename: "test_img2.png",
symbol: "bg3",
is360: false,
},
] as ReferencedBackground[];
Expand Down Expand Up @@ -633,6 +635,7 @@ test("should include tileset for background when also used without common tilese
imageWidth: 160,
imageHeight: 144,
filename: "test_img.png",
symbol: "bg2",
is360: false,
},
{
Expand All @@ -643,6 +646,7 @@ test("should include tileset for background when also used without common tilese
imageWidth: 160,
imageHeight: 144,
filename: "test_img2.png",
symbol: "bg3",
is360: false,
},
] as ReferencedBackground[];
Expand Down Expand Up @@ -728,22 +732,24 @@ test("should share tilesets if possible when multiple backgrounds include common
const backgrounds = [
{
id: "2b",
name: "test_img",
name: "bg_ad",
width: 20,
height: 18,
imageWidth: 160,
imageHeight: 144,
filename: "test_img.png",
filename: "bg_ad.png",
symbol: "bg_ad",
is360: false,
},
{
id: "3b",
name: "test_img2",
name: "bg_bc",
width: 20,
height: 18,
imageWidth: 160,
imageHeight: 144,
filename: "test_img2.png",
filename: "bg_bc.png",
symbol: "bg_bc",
is360: false,
},
] as ReferencedBackground[];
Expand Down Expand Up @@ -807,22 +813,24 @@ test("should generate unique tileset for background if used without common tiles
const backgrounds = [
{
id: "2b",
name: "test_img",
name: "bg_ad",
width: 20,
height: 18,
imageWidth: 160,
imageHeight: 144,
filename: "test_img.png",
filename: "bg_ad.png",
symbol: "bg_ad",
is360: false,
},
{
id: "3b",
name: "test_img2",
name: "bg_bc",
width: 20,
height: 18,
imageWidth: 160,
imageHeight: 144,
filename: "test_img2.png",
filename: "bg_bc.png",
symbol: "bg_bc",
is360: false,
},
] as ReferencedBackground[];
Expand Down Expand Up @@ -902,22 +910,24 @@ test("should generate unique tileset for background if referenced from script ev
const backgrounds = [
{
id: "2b",
name: "test_img",
name: "bg_ad",
width: 20,
height: 18,
imageWidth: 160,
imageHeight: 144,
filename: "test_img.png",
filename: "bg_ad.png",
symbol: "bg_ad",
is360: false,
},
{
id: "3b",
name: "test_img2",
name: "bg_bc",
width: 20,
height: 18,
imageWidth: 160,
imageHeight: 144,
filename: "test_img2.png",
filename: "bg_bc.png",
symbol: "bg_bc",
is360: false,
},
] as ReferencedBackground[];
Expand Down

0 comments on commit 2b54ec6

Please sign in to comment.