@@ -62,11 +62,7 @@ test('reporter.tap(): passing', (t) => {
6262 }
6363
6464 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 ) ;
7066 t . end ( ) ;
7167} ) ;
7268
@@ -79,8 +75,7 @@ test('reporter.tap(): failing', (t) => {
7975 }
8076
8177 tapReporter ( logger , failingInput ) ;
82- t . equal ( output , failingExpected ) ,
83- 'we should get the expected output when a' + ' module fails' ;
78+ t . equal ( output , failingExpected ) ;
8479 t . end ( ) ;
8580} ) ;
8681
@@ -96,8 +91,7 @@ test('reporter.tap(): parser', (t) => {
9691 // `results` contains JS classes that are not considered same as the
9792 // plain objects loaded from the JSON file.
9893 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 ) ;
10195 t . end ( ) ;
10296 } ) ;
10397 str ( output ) . pipe ( p ) ;
@@ -107,8 +101,7 @@ test('reporter.tap(): write to disk', (t) => {
107101 t . plan ( 1 ) ;
108102 tapReporter ( outputFile , passingInput ) ;
109103 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 ) ;
112105 t . end ( ) ;
113106} ) ;
114107
@@ -118,17 +111,15 @@ test('reporter.tap(): append to disk', (t) => {
118111 writeFileSync ( outputFileAppend , appendStartFile ) ;
119112 tapReporter ( outputFileAppend , passingInput , true ) ;
120113 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 ) ;
123115 t . end ( ) ;
124116} ) ;
125117
126118test ( 'reporter.tap(): append to disk when file does not exist' , ( t ) => {
127119 t . plan ( 1 ) ;
128120 tapReporter ( outputFileAppendBlank , passingInput , true ) ;
129121 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 ) ;
132123 t . end ( ) ;
133124} ) ;
134125
0 commit comments