From f854e23429c23451a968dfe4691fba5eb21ea21e Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 9 Apr 2013 21:36:35 +0100 Subject: Replace zipfile with unzip --- tests/document-to-html.tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/document-to-html.tests.js') 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(); -- cgit v1.2.3