mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 19:25:23 +00:00
Added path normalization on Windows, along with some tests
This commit is contained in:
@@ -833,6 +833,16 @@ describe("PKPass", () => {
|
||||
expect(pass[filesSymbol]["en.lproj/pass.string"]).toBeUndefined();
|
||||
expect(pass[localizationSymbol]["en"]).toBeUndefined();
|
||||
});
|
||||
|
||||
it("should convert Windows paths to single UNIX slash", () => {
|
||||
if (path.sep === "\\") {
|
||||
pass.addBuffer("en.lproj\\icon@2x.png", Buffer.alloc(0));
|
||||
|
||||
expect(pass[filesSymbol]).toContain({
|
||||
"en.lproj/icon@2x.png": Buffer.alloc(0),
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe("[importMetadataSymbol]", () => {
|
||||
|
||||
Reference in New Issue
Block a user