File tree 3 files changed +9
-9
lines changed
lib/internal/test_runner/reporter
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -94,14 +94,14 @@ function indent(nesting) {
94
94
95
95
// In certain places, # and \ need to be escaped as \# and \\.
96
96
function tapEscape ( input ) {
97
- let result = StringPrototypeReplaceAll ( input , '\\' , '\\\\' ) ;
98
- result = StringPrototypeReplaceAll ( result , '#' , '\\#' ) ;
99
- result = StringPrototypeReplaceAll ( result , '\b' , '\\b' ) ;
97
+ let result = StringPrototypeReplaceAll ( input , '\b' , '\\b' ) ;
100
98
result = StringPrototypeReplaceAll ( result , '\f' , '\\f' ) ;
101
99
result = StringPrototypeReplaceAll ( result , '\t' , '\\t' ) ;
102
100
result = StringPrototypeReplaceAll ( result , '\n' , '\\n' ) ;
103
101
result = StringPrototypeReplaceAll ( result , '\r' , '\\r' ) ;
104
102
result = StringPrototypeReplaceAll ( result , '\v' , '\\v' ) ;
103
+ result = StringPrototypeReplaceAll ( result , '\\' , '\\\\' ) ;
104
+ result = StringPrototypeReplaceAll ( result , '#' , '\\#' ) ;
105
105
return result ;
106
106
}
107
107
Original file line number Diff line number Diff line change @@ -346,8 +346,8 @@ ok 36 - functionAndOptions # SKIP
346
346
---
347
347
duration_ms: *
348
348
...
349
- # Subtest: escaped description \\ \# \\\#\\ \n \t \f \v \b \r
350
- ok 37 - escaped description \\ \# \\\#\\ \n \t \f \v \b \r
349
+ # Subtest: escaped description \\ \# \\\#\\ \\ n \\ t \\ f \\ v \\b \ \r
350
+ ok 37 - escaped description \\ \# \\\#\\ \\ n \\ t \\ f \\ v \\b \ \r
351
351
---
352
352
duration_ms: *
353
353
...
Original file line number Diff line number Diff line change @@ -122,9 +122,9 @@ TAP version 13
122
122
failureType: 'testCodeFailure'
123
123
error: |-
124
124
Expected values to be strictly equal:
125
-
125
+
126
126
true !== false
127
-
127
+
128
128
code: 'ERR_ASSERTION'
129
129
expected: false
130
130
actual: true
@@ -345,8 +345,8 @@ TAP version 13
345
345
---
346
346
duration_ms: *
347
347
...
348
- # Subtest: escaped description \\ \# \\\#\\ n \\t f \\v b \\r
349
- ok 37 - escaped description \\ \# \\\#\\ n \\t f \\v b \\r
348
+ # Subtest: escaped description \\ \# \\\#\\ \\ n \\t \\ f \\v \\ b \\r
349
+ ok 37 - escaped description \\ \# \\\#\\ \\ n \\t \\ f \\v \\ b \\r
350
350
---
351
351
duration_ms: *
352
352
...
You can’t perform that action at this time.
0 commit comments