File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ test('should call preProcessMd hook', function (t) {
9393 var writeCount = 0
9494 var preProcessMd = function ( ) { return through ( function ( data , enc , cb ) { writeCount ++ ; this . push ( data ) ; cb ( ) } ) }
9595
96- markdownpdf ( { preProcessMd : preProcessMd } ) . from ( path . join ( __dirname , '/fixtures/ipsum.md' ) ) . to . string ( function ( er , pdfStr ) {
96+ markdownpdf ( { preProcessMd } ) . from ( path . join ( __dirname , '/fixtures/ipsum.md' ) ) . to . string ( function ( er , pdfStr ) {
9797 t . ifError ( er )
9898
9999 // Test not empty
@@ -109,7 +109,7 @@ test('should call preProcessHtml hook', function (t) {
109109 var writeCount = 0
110110 var preProcessHtml = function ( ) { return through ( function ( data , enc , cb ) { writeCount ++ ; this . push ( data ) ; cb ( ) } ) }
111111
112- markdownpdf ( { preProcessHtml : preProcessHtml } ) . from ( path . join ( __dirname , '/fixtures/ipsum.md' ) ) . to . string ( function ( er , pdfStr ) {
112+ markdownpdf ( { preProcessHtml } ) . from ( path . join ( __dirname , '/fixtures/ipsum.md' ) ) . to . string ( function ( er , pdfStr ) {
113113 t . ifError ( er )
114114
115115 // Test not empty
You can’t perform that action at this time.
0 commit comments