diff options
author | HampusM <hampus@hampusmat.com> | 2021-07-24 23:25:41 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-07-24 23:25:41 +0200 |
commit | 9c430da1dc28692bce3c3d1d2c1efa299a0791f3 (patch) | |
tree | 05cb217981fa46b7b3857a97f9f1325f187b794f /test/unit/git-http.unit.test.ts | |
parent | a0be6a068cbc10798f724b855cb41046609d51f0 (diff) |
The Git http unit test should pass now
Diffstat (limited to 'test/unit/git-http.unit.test.ts')
-rw-r--r-- | test/unit/git-http.unit.test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
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}/); |