From 9c430da1dc28692bce3c3d1d2c1efa299a0791f3 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 24 Jul 2021 23:25:41 +0200 Subject: The Git http unit test should pass now --- test/unit/git-http.unit.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/unit/git-http.unit.test.ts') diff --git a/test/unit/git-http.unit.test.ts b/test/unit/git-http.unit.test.ts index de281fb..f182e73 100644 --- a/test/unit/git-http.unit.test.ts +++ b/test/unit/git-http.unit.test.ts @@ -119,19 +119,19 @@ describe("Git HTTP backend", () => { const counting_objects = readable_stdout[2].split("###"); for(const progress of counting_objects.slice(0, -1)) { - expect(progress).toMatch(/^Counting\ objects:\s+\d+%\s\(\d+\/\d+\)$/); + expect(progress).toMatch(/^Counting\ objects:\s+\d+%\s\(\d+\/\d+\)/); } - expect(counting_objects[counting_objects.length - 1]).toMatch(/^Counting\ objects:\s+\d+%\s\(\d+\/\d+\),\sdone\.$/); + expect(counting_objects[counting_objects.length - 1]).toMatch(/^Counting\ objects:\s+\d+%\s\(\d+\/\d+\),\sdone\./); // Make sure the progress output for compressing objects is fine and dandy const compressing_objects = readable_stdout[3].split("###"); for(const progress of compressing_objects.slice(0, -1)) { - expect(progress).toMatch(/^Compressing\ objects:\s+\d+%\s\(\d+\/\d+\)$/); + expect(progress).toMatch(/^Compressing\ objects:\s+\d+%\s\(\d+\/\d+\)/); } - expect(compressing_objects[counting_objects.length - 1]).toMatch(/^Compressing\ objects:\s+\d+%\s\(\d+\/\d+\),\sdone\.$/); + expect(compressing_objects[counting_objects.length - 1]).toMatch(/^Compressing\ objects:\s+\d+%\s\(\d+\/\d+\),\sdone\./); //Just to be sure expect(readable_stdout[readable_stdout.length - 1]).toMatch(/^A?0{4}/); -- cgit v1.2.3-18-g5258