diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-04-09 21:36:35 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-04-09 21:36:35 +0100 |
| commit | f854e23429c23451a968dfe4691fba5eb21ea21e (patch) | |
| tree | 4061308df30c8cae988d51b4d53686c4248db508 /tests/document-to-html.tests.js | |
| parent | a02b92d7b7d95ab2e8f9e2dfb8a7661b61306674 (diff) | |
Replace zipfile with unzip
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(); |
