From ee2038005bf928c7dcfc0a116d9073a967558820 Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Sat, 23 Oct 2021 18:47:00 +0200 Subject: [PATCH] Fixed wrong test for transitType change --- spec/PKPass.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/PKPass.ts b/spec/PKPass.ts index b21a145..a553cca 100644 --- a/spec/PKPass.ts +++ b/spec/PKPass.ts @@ -412,7 +412,8 @@ describe("PKPass", () => { Messages.TRANSIT_TYPE.UNEXPECTED_PASS_TYPE, ); - expect(passCP.transitType).toBeUndefined(); + /** boardingPass property doesn't exists, so it throws */ + expect(() => passCP.transitType).toThrow(); }); });