From d8da6afa4c5d937ed19ace88685e56bcbe6e6267 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Tue, 27 Oct 2020 11:24:25 +0100 Subject: [PATCH] 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. --- test/unit/util_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/util_spec.js b/test/unit/util_spec.js index 752c03ddb..b462ee744 100644 --- a/test/unit/util_spec.js +++ b/test/unit/util_spec.js @@ -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\\)" );