From c2cd1e03247806d900db5b1654ba07700dffcafe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Sun, 26 Apr 2020 10:52:21 +0100 Subject: [PATCH] Use object shorthand for properties --- test/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/index.js b/test/index.js index 53a44f1..805d9c3 100644 --- a/test/index.js +++ b/test/index.js @@ -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 @@ -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