@@ -62,11 +62,7 @@ test('reporter.tap(): passing', (t) => {
62
62
}
63
63
64
64
tapReporter ( logger , passingInput ) ;
65
- t . equal (
66
- output ,
67
- passingExpected ,
68
- 'we should get expected output when all' + ' modules pass'
69
- ) ;
65
+ t . equal ( output , passingExpected ) ;
70
66
t . end ( ) ;
71
67
} ) ;
72
68
@@ -79,8 +75,7 @@ test('reporter.tap(): failing', (t) => {
79
75
}
80
76
81
77
tapReporter ( logger , failingInput ) ;
82
- ( t . equal ( output , failingExpected ) ,
83
- 'we should get the expected output when a' + ' module fails' ) ;
78
+ t . equal ( output , failingExpected ) ;
84
79
t . end ( ) ;
85
80
} ) ;
86
81
@@ -96,8 +91,7 @@ test('reporter.tap(): parser', (t) => {
96
91
// `results` contains JS classes that are not considered same as the
97
92
// plain objects loaded from the JSON file.
98
93
const plainResults = JSON . parse ( JSON . stringify ( results ) ) ;
99
- ( t . same ( plainResults , tapParserExpected ) ,
100
- 'the tap parser should correctly' + ' parse the tap file' ) ;
94
+ t . same ( plainResults , tapParserExpected ) ;
101
95
t . end ( ) ;
102
96
} ) ;
103
97
str ( output ) . pipe ( p ) ;
@@ -107,8 +101,7 @@ test('reporter.tap(): write to disk', (t) => {
107
101
t . plan ( 1 ) ;
108
102
tapReporter ( outputFile , passingInput ) ;
109
103
const expected = readFileSync ( outputFile , 'utf8' ) ;
110
- ( t . equal ( expected , passingExpected ) ,
111
- 'the file on disk should match the' + ' expected output' ) ;
104
+ t . equal ( expected , passingExpected ) ;
112
105
t . end ( ) ;
113
106
} ) ;
114
107
@@ -118,17 +111,15 @@ test('reporter.tap(): append to disk', (t) => {
118
111
writeFileSync ( outputFileAppend , appendStartFile ) ;
119
112
tapReporter ( outputFileAppend , passingInput , true ) ;
120
113
const expected = readFileSync ( outputFileAppend , 'utf8' ) ;
121
- ( t . equal ( expected , passingExpectedAppend ) ,
122
- 'the file on disk should match the' + ' expected output' ) ;
114
+ t . equal ( expected , passingExpectedAppend ) ;
123
115
t . end ( ) ;
124
116
} ) ;
125
117
126
118
test ( 'reporter.tap(): append to disk when file does not exist' , ( t ) => {
127
119
t . plan ( 1 ) ;
128
120
tapReporter ( outputFileAppendBlank , passingInput , true ) ;
129
121
const expected = readFileSync ( outputFileAppendBlank , 'utf8' ) ;
130
- ( t . equal ( expected , passingExpected ) ,
131
- 'the file on disk should match the' + ' expected output' ) ;
122
+ t . equal ( expected , passingExpected ) ;
132
123
t . end ( ) ;
133
124
} ) ;
134
125
0 commit comments