Fixed wrong test for transitType change

This commit is contained in:
Alexander Cerutti
2021-10-23 18:47:00 +02:00
parent 03643834f1
commit ee2038005b

View File

@@ -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();
});
});