Skip to content

Commit

Permalink
Use object shorthand for properties
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU committed Apr 26, 2020
1 parent 5bdda51 commit c2cd1e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.js
Expand Up @@ -93,7 +93,7 @@ test('should call preProcessMd hook', function (t) {
var writeCount = 0
var preProcessMd = function () { return through(function (data, enc, cb) { writeCount++; this.push(data); cb() }) }

markdownpdf({ preProcessMd: preProcessMd }).from(path.join(__dirname, '/fixtures/ipsum.md')).to.string(function (er, pdfStr) {
markdownpdf({ preProcessMd }).from(path.join(__dirname, '/fixtures/ipsum.md')).to.string(function (er, pdfStr) {
t.ifError(er)

// Test not empty
Expand All @@ -109,7 +109,7 @@ test('should call preProcessHtml hook', function (t) {
var writeCount = 0
var preProcessHtml = function () { return through(function (data, enc, cb) { writeCount++; this.push(data); cb() }) }

markdownpdf({ preProcessHtml: preProcessHtml }).from(path.join(__dirname, '/fixtures/ipsum.md')).to.string(function (er, pdfStr) {
markdownpdf({ preProcessHtml }).from(path.join(__dirname, '/fixtures/ipsum.md')).to.string(function (er, pdfStr) {
t.ifError(er)

// Test not empty
Expand Down

0 comments on commit c2cd1e0

Please sign in to comment.