mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 23:25:26 +00:00
Fixed tests after Windows run
This commit is contained in:
@@ -839,9 +839,10 @@ describe("PKPass", () => {
|
|||||||
if (path.sep === "\\") {
|
if (path.sep === "\\") {
|
||||||
pass.addBuffer("en.lproj\\icon@2x.png", Buffer.alloc(0));
|
pass.addBuffer("en.lproj\\icon@2x.png", Buffer.alloc(0));
|
||||||
|
|
||||||
expect(pass[filesSymbol]).toContain({
|
expect(pass[filesSymbol]["en.lproj/icon@2x.png"]).toBeDefined();
|
||||||
"en.lproj/icon@2x.png": Buffer.alloc(0),
|
expect(
|
||||||
});
|
pass[filesSymbol]["en.lproj\\icon@2x.png"],
|
||||||
|
).toBeUndefined();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -1062,7 +1063,7 @@ describe("PKPass", () => {
|
|||||||
|
|
||||||
expect(parsedResult[0]).toMatch(/en\.lproj\/icon\.png/);
|
expect(parsedResult[0]).toMatch(/en\.lproj\/icon\.png/);
|
||||||
expect(parsedResult[1]).toMatch(/en\.lproj\/icon@2x\.png/);
|
expect(parsedResult[1]).toMatch(/en\.lproj\/icon@2x\.png/);
|
||||||
expect(parsedResult[1]).toMatch(/en\.lproj\/icon@3x\.png/);
|
expect(parsedResult[2]).toMatch(/en\.lproj\/icon@3x\.png/);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user