Fixed tests after Windows run

This commit is contained in:
Alexander Cerutti
2021-12-28 01:16:26 +01:00
parent 121524d8b1
commit 92ab060c7d

View File

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