Skip to content

Commit

Permalink
add translation test
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Nov 9, 2024
1 parent f41b3c3 commit 41a0dec
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ describe("CommaSeperatedFileList", () => {
expect(result).toBe("without extension");
});

test("should handle translated fallback for inputs without dots", () => {
const result = comma.CommaSpaceLastDot(["example", "another", "final"], "__test123__");
expect(result).toBe("__test123__");
});

test("should handle mixed inputs with and without dots", () => {
const result = comma.CommaSpaceLastDot(["example.test", "another", "final.test"]);
expect(result).toBe("test, without extension");
Expand Down

0 comments on commit 41a0dec

Please sign in to comment.