Skip to content

Commit

Permalink
Update the description of the test-case used in the escapeString un…
Browse files Browse the repository at this point in the history
…it-test

The description *itself* didn't escape the control characters correctly, leading to line-breaks being inserted in the test logs.
  • Loading branch information
Snuffleupagus committed Oct 27, 2020
1 parent 9247733 commit d8da6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/util_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ describe("util", function () {
});

describe("escapeString", function () {
it("should escape (, ), \n, \r and \\", function () {
it("should escape (, ), \\n, \\r, and \\", function () {
expect(escapeString("((a\\a))\n(b(b\\b)\rb)")).toEqual(
"\\(\\(a\\\\a\\)\\)\\n\\(b\\(b\\\\b\\)\\rb\\)"
);
Expand Down

0 comments on commit d8da6af

Please sign in to comment.