@@ -16,15 +16,6 @@ const merge = require('lodash/merge');
1616const mkdirp = require ( 'mkdirp' ) ;
1717const fs = require ( 'fs' ) ;
1818
19- function prettyPrintHtml ( rawHtml ) {
20- return rawHtml . end ( {
21- pretty : true ,
22- indent : ' ' ,
23- newline : '\n' ,
24- allowEmpty : false ,
25- } ) ;
26- }
27-
2819function buildMockResult ( mockResult = { } ) {
2920 const defaultMockResult = {
3021 numFailedTestSuites : 0 ,
@@ -97,7 +88,7 @@ describe('html-report-creator', () => {
9788
9889 createHtmlReport ( mockResult ) ;
9990 expect (
100- prettyPrintHtml ( fs . writeFileSync . mock . calls [ 0 ] [ 1 ] )
91+ fs . writeFileSync . mock . calls [ 0 ] [ 1 ]
10192 ) . toMatchSnapshot ( ) ;
10293 } ) ;
10394
@@ -119,7 +110,7 @@ describe('html-report-creator', () => {
119110
120111 createHtmlReport ( mockResult ) ;
121112 expect (
122- prettyPrintHtml ( fs . writeFileSync . mock . calls [ 0 ] [ 1 ] )
113+ fs . writeFileSync . mock . calls [ 0 ] [ 1 ]
123114 ) . toMatchSnapshot ( ) ;
124115 } ) ;
125116
@@ -129,7 +120,7 @@ describe('html-report-creator', () => {
129120
130121 createHtmlReport ( mockResult ) ;
131122 expect (
132- prettyPrintHtml ( fs . writeFileSync . mock . calls [ 0 ] [ 1 ] )
123+ fs . writeFileSync . mock . calls [ 0 ] [ 1 ]
133124 ) . toMatchSnapshot ( ) ;
134125 } ) ;
135126
@@ -151,7 +142,7 @@ describe('html-report-creator', () => {
151142
152143 createHtmlReport ( mockResult ) ;
153144 expect (
154- prettyPrintHtml ( fs . writeFileSync . mock . calls [ 0 ] [ 1 ] )
145+ fs . writeFileSync . mock . calls [ 0 ] [ 1 ]
155146 ) . toMatchSnapshot ( ) ;
156147 } ) ;
157148
@@ -173,7 +164,7 @@ describe('html-report-creator', () => {
173164
174165 createHtmlReport ( mockResult ) ;
175166 expect (
176- prettyPrintHtml ( fs . writeFileSync . mock . calls [ 0 ] [ 1 ] )
167+ fs . writeFileSync . mock . calls [ 0 ] [ 1 ]
177168 ) . toMatchSnapshot ( ) ;
178169 } ) ;
179170
@@ -195,7 +186,7 @@ describe('html-report-creator', () => {
195186
196187 createHtmlReport ( mockResult ) ;
197188 expect (
198- prettyPrintHtml ( fs . writeFileSync . mock . calls [ 0 ] [ 1 ] )
189+ fs . writeFileSync . mock . calls [ 0 ] [ 1 ]
199190 ) . toMatchSnapshot ( ) ;
200191 } ) ;
201192
0 commit comments