diff options
Diffstat (limited to 'tests/document-to-html.tests.js')
| -rw-r--r-- | tests/document-to-html.tests.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/document-to-html.tests.js b/tests/document-to-html.tests.js index 04ac143..5ed2224 100644 --- a/tests/document-to-html.tests.js +++ b/tests/document-to-html.tests.js @@ -158,8 +158,8 @@ describe('DocumentConverter', function() { test('images are written with data URIs', function() { var imageBuffer = new Buffer("Not an image at all!"); var image = new documents.Image( - function() { - return q.when(imageBuffer); + function(encoding) { + return q.when(imageBuffer.toString(encoding)); } ); var converter = new DocumentConverter(); |
