Skip to content

Commit

Permalink
chore: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 committed Mar 1, 2024
1 parent 08f144d commit 57d2f41
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/parser/escapeIcuVariant.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,10 @@ describe("escape icu variant", () => {
it("escapes stuff correctly when apostrophe as parameter", () => {
expect(escapeIcuVariant("{ ' }")).toEqual("'{' ' '}'");
});

it("handles apostrophes and dangling escape sequence at the end", () => {
expect(escapeIcuVariant("# položka seznamu '{ '' }")).toEqual(
"# položka seznamu '{ '' }'"
);
});
});

0 comments on commit 57d2f41

Please sign in to comment.