(flag, imageCount)
| 854 | describe("isCollection tileset flag", () => { |
| 855 | // mirrors the logic: tileset.isCollection ?? imageCollection.length > 0 |
| 856 | function resolveIsCollection(flag, imageCount) { |
| 857 | return flag ?? imageCount > 0; |
| 858 | } |
| 859 | |
| 860 | it("should use explicit true flag", () => { |
| 861 | expect(resolveIsCollection(true, 0)).toEqual(true); |