Skip to content

Commit c2cd1e0

Browse files
committed
Use object shorthand for properties
1 parent 5bdda51 commit c2cd1e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)