We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63563f8 commit 32b020cCopy full SHA for 32b020c
3 files changed
lib/internal/test_runner/reporter/tap.js
@@ -132,14 +132,14 @@ function indent(nesting) {
132
133
// In certain places, # and \ need to be escaped as \# and \\.
134
function tapEscape(input) {
135
- let result = StringPrototypeReplaceAll(input, '\\', '\\\\');
136
- result = StringPrototypeReplaceAll(result, '#', '\\#');
137
- result = StringPrototypeReplaceAll(result, '\b', '\\b');
+ let result = StringPrototypeReplaceAll(input, '\b', '\\b');
138
result = StringPrototypeReplaceAll(result, '\f', '\\f');
139
result = StringPrototypeReplaceAll(result, '\t', '\\t');
140
result = StringPrototypeReplaceAll(result, '\n', '\\n');
141
result = StringPrototypeReplaceAll(result, '\r', '\\r');
142
result = StringPrototypeReplaceAll(result, '\v', '\\v');
+ result = StringPrototypeReplaceAll(result, '\\', '\\\\');
+ result = StringPrototypeReplaceAll(result, '#', '\\#');
143
return result;
144
}
145
test/message/test_runner_output.out
@@ -346,8 +346,8 @@ ok 36 - functionAndOptions # SKIP
346
---
347
duration_ms: *
348
...
349
-# Subtest: escaped description \\ \# \\\#\\ \n \t \f \v \b \r
350
-ok 37 - escaped description \\ \# \\\#\\ \n \t \f \v \b \r
+# Subtest: escaped description \\ \# \\\#\\ \\n \\t \\f \\v \\b \\r
+ok 37 - escaped description \\ \# \\\#\\ \\n \\t \\f \\v \\b \\r
351
352
353
test/message/test_runner_output_cli.out
@@ -122,9 +122,9 @@ TAP version 13
122
failureType: 'testCodeFailure'
123
error: |-
124
Expected values to be strictly equal:
125
-
+
126
true !== false
127
128
code: 'ERR_ASSERTION'
129
expected: false
130
actual: true
@@ -345,8 +345,8 @@ TAP version 13
345
- # Subtest: escaped description \\ \# \\\#\\ n \\t f \\v b \\r
- ok 37 - escaped description \\ \# \\\#\\ n \\t f \\v b \\r
+ # Subtest: escaped description \\ \# \\\#\\ \\n \\t \\f \\v \\b \\r
+ ok 37 - escaped description \\ \# \\\#\\ \\n \\t \\f \\v \\b \\r
0 commit comments