Skip to content

Commit 5282f6c

Browse files
committed
No need to # in the Bail out! message
1 parent bfb5942 commit 5282f6c

28 files changed

+38
-39
lines changed

lib/test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ Test.prototype.bailout = function (message) {
148148
this.parent.bailout(message)
149149
else {
150150
this.process()
151-
message = message ? ' # ' + ('' + message).trim() : ''
152-
message = message.replace(/^( #)+ /, ' # ')
151+
message = message ? ' ' + ('' + message).trim() : ''
153152
message = message.replace(/[\r\n]/g, ' ')
154153
this.parser.write('Bail out!' + message + '\n')
155154
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
TAP version 13
2-
Bail out! # TypeError: wat
2+
Bail out! TypeError: wat
33

test/test/bail-error-object--bail.tap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
TAP version 13
2-
Bail out! # TypeError: wat
2+
Bail out! TypeError: wat
33

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
TAP version 13
2-
Bail out! # TypeError: wat
2+
Bail out! TypeError: wat
33

test/test/bail-error-object.tap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
TAP version 13
2-
Bail out! # TypeError: wat
2+
Bail out! TypeError: wat
33

test/test/bail-teardown--bail--buffer.tap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ ok 2 - child ___/# time=[0-9.]+(ms)?/~~~ {
55
1..1
66
}
77

8-
Bail out! # i did not want to be torn down
8+
Bail out! i did not want to be torn down
99

test/test/bail-teardown--bail.tap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ ok 1 - this is fine
55
1..1
66
ok 2 - child ___/# time=[0-9.]+(ms)?/~~~
77

8-
Bail out! # i did not want to be torn down
8+
Bail out! i did not want to be torn down
99

test/test/bail-teardown--buffer.tap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ ok 2 - child ___/# time=[0-9.]+(ms)?/~~~ {
55
1..1
66
}
77

8-
Bail out! # i did not want to be torn down
8+
Bail out! i did not want to be torn down
99

test/test/bail-teardown-async--bail--buffer.tap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ ok 1 - foobar test ___/# time=[0-9.]+(ms)?/~~~ {
33
1..0
44
}
55

6-
Bail out! # teardown fail
6+
Bail out! teardown fail
77

test/test/bail-teardown-async--bail.tap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ TAP version 13
44
ok 1 - foobar test ___/# time=[0-9.]+(ms)?/~~~
55

66
# Subtest: barfoo
7-
Bail out! # teardown fail
7+
Bail out! teardown fail
88

0 commit comments

Comments
 (0)