Unified props passing to PKPass.from between template and PKPass

This commit is contained in:
Alexander Cerutti
2021-10-16 12:44:01 +02:00
parent 4a02c03c62
commit 2a7f5f818c
3 changed files with 17 additions and 27 deletions

View File

@@ -1052,18 +1052,20 @@ describe("PKPass", () => {
),
);
const newPass = await PKPass.from({
model: path.resolve(
__dirname,
"../examples/models/exampleBooking.pass",
),
certificates: {
...baseCerts,
const newPass = await PKPass.from(
{
model: path.resolve(
__dirname,
"../examples/models/exampleBooking.pass",
),
certificates: {
...baseCerts,
},
},
props: {
{
voided: true,
},
});
);
expect(Object.keys(newPass[filesSymbol]).length).toBe(7);