Skip to content

Commit

Permalink
test: update parseOutput.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelCurrin committed Aug 19, 2024
1 parent df5b9ab commit 3302df7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/test/git/parseOutput.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,19 @@ describe("Split `git diff-index` output into components", function () {
});
});

describe("handle special characters in filenames", function () {
it("should correctly parse a filename with special characters", function () {
const expected: FileChange = {
x: "A",
y: " ",
from: "abcëxyz.md",
to: "",
};

assert.deepStrictEqual(parseDiffIndex("A\tabcëxyz.md"), expected);
});
});

it("should handle a pair of paths correctly", function () {
{
const expected: FileChange = {
Expand Down

0 comments on commit 3302df7

Please sign in to comment.