Skip to content
This repository was archived by the owner on Apr 12, 2019. It is now read-only.

Commit 28178fe

Browse files
committed
fixes tests failing due to convert method arguments change
1 parent c0bdc47 commit 28178fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/phantom-html2pdf.test.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ describe('phantom-html2pdf.js', function() {
1414
'papersize': {format: 'A4', orientation: 'portrait', border: '1cm'}
1515
};
1616

17-
pdf.convert(pdfOptions, function (result) {
17+
pdf.convert(pdfOptions, function (err, result) {
18+
assert(!err, "Error is empty");
1819
result.toBuffer(function (buffer) {
1920
assert(buffer, 'A buffer is returned');
2021
assert(buffer.length > 0, 'The generated buffer is not empty');

0 commit comments

Comments
 (0)