From ad8fc8c9979699eedfeb3a9f3bf9d91c045735bb Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Tue, 23 Sep 2025 22:59:55 +0200 Subject: [PATCH] Fixed tests for iOS 26 --- specs/PKPass.spec.mjs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specs/PKPass.spec.mjs b/specs/PKPass.spec.mjs index 29f0748..2b5d3c5 100644 --- a/specs/PKPass.spec.mjs +++ b/specs/PKPass.spec.mjs @@ -1276,7 +1276,7 @@ describe("PKPass", () => { }); }); - describe("eventTicket new layout", () => { + describe("iOS 18 / iOS 26 new layouts", () => { it("should contain preferredStyleSchemes if coming from an imported pass json", () => { const passjson = modelFiles["pass.json"]; const changedPassJson = Buffer.from( @@ -1355,16 +1355,16 @@ describe("PKPass", () => { }); }); - it("preferredStyleSchemes setter should throw if pass is not an eventTicket", () => { - pkpass.type = "boardingPass"; + it("preferredStyleSchemes setter should throw if pass is not an eventTicket or boardingPass", () => { + pkpass.type = "storeCard"; expect(() => { pkpass.preferredStyleSchemes = ["posterEventTicket", "eventTicket"]; }).toThrowError(); }); - it("preferredStyleSchemes getter should throw if pass is not an eventTicket", () => { - pkpass.type = "boardingPass"; + it("preferredStyleSchemes getter should throw if pass is not an eventTicket or boardingPass", () => { + pkpass.type = "storeCard"; expect(() => { pkpass.preferredStyleSchemes;