Skip to content

Commit

Permalink
update tests to reflect max ref length change
Browse files Browse the repository at this point in the history
  • Loading branch information
claysmalley committed Jun 13, 2024
1 parent 45b2731 commit 92881dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/spec/shield.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const handler = shieldRenderer.getStyleImageMissingHandler();

handler({ id: "shield\nBAB\n5\n\n" });
handler({ id: "shield\nUS:RI\n\n\n" });
handler({ id: "shield\nUS:RI\nABC123\n\n" });
handler({ id: "shield\nUS:RI\nEquator\n\n" });
handler({ id: "shield\nUS:RI\nABC1234\n\n" });
handler({ id: "shield\nUS:RI\nLatitude\n\n" });
handler({ id: "shield\nrwn\n\n\n" });
handler({ id: "foo" });

Expand All @@ -51,9 +51,9 @@ describe("shield", function () {
expect(isBlankSprite("shield\nUS:RI\n\n\n")).to.be.true;
});
it("rejects a long ref", function () {
expect(mockRepo.hasSprite("shield\nUS:RI\nABC123\n\n")).to.be.true;
expect(isBlankSprite("shield\nUS:RI\nABC123\n\n")).to.be.false;
expect(isBlankSprite("shield\nUS:RI\nEquator\n\n")).to.be.true;
expect(mockRepo.hasSprite("shield\nUS:RI\nABC1234\n\n")).to.be.true;
expect(isBlankSprite("shield\nUS:RI\nABC1234\n\n")).to.be.false;
expect(isBlankSprite("shield\nUS:RI\nLatitude\n\n")).to.be.true;
});
});
});

0 comments on commit 92881dd

Please sign in to comment.