Update the description of the test-case used in the escapeString
unit-test
The description *itself* didn't escape the control characters correctly, leading to line-breaks being inserted in the test logs.
This commit is contained in:
parent
92477333f6
commit
d8da6afa4c
@ -319,7 +319,7 @@ describe("util", function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe("escapeString", 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(
|
expect(escapeString("((a\\a))\n(b(b\\b)\rb)")).toEqual(
|
||||||
"\\(\\(a\\\\a\\)\\)\\n\\(b\\(b\\\\b\\)\\rb\\)"
|
"\\(\\(a\\\\a\\)\\)\\n\\(b\\(b\\\\b\\)\\rb\\)"
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user