mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 19:25:23 +00:00
Unified props passing to PKPass.from between template and PKPass
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user