From 92ab060c7d5c7ae4149800c5e5325fc4d587b19e Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Tue, 28 Dec 2021 01:16:26 +0100 Subject: [PATCH] Fixed tests after Windows run --- spec/PKPass.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spec/PKPass.ts b/spec/PKPass.ts index e5c9979..30ab38e 100644 --- a/spec/PKPass.ts +++ b/spec/PKPass.ts @@ -839,9 +839,10 @@ describe("PKPass", () => { 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), - }); + expect(pass[filesSymbol]["en.lproj/icon@2x.png"]).toBeDefined(); + 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[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/); } }); });