From 554e939ed6f3ce697fca925a333cb9fc14ccbe5a Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 18 Apr 2013 20:07:23 +0100 Subject: Return Result from document-to-HTML conversion --- tests/mammoth.tests.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/mammoth.tests.js') diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js index fe5d72a..49bc02f 100644 --- a/tests/mammoth.tests.js +++ b/tests/mammoth.tests.js @@ -18,7 +18,7 @@ describe('mammoth', function() { var docxPath = path.join(__dirname, "test-data/single-paragraph.docx"); var converter = new mammoth.Converter(); return converter.convertToHtml({path: docxPath}).then(function(result) { - assert.equal("

Walking on imported air

", result.html); + assert.equal("

Walking on imported air

", result.value); }); }); @@ -32,7 +32,7 @@ describe('mammoth', function() { } var converter = new mammoth.Converter(); return converter.convertToHtml({uint8Array: array}).then(function(result) { - assert.equal("

Walking on imported air

", result.html); + assert.equal("

Walking on imported air

", result.value); }); }); }); @@ -45,7 +45,7 @@ describe('mammoth', function() { defaultParagraphStyle: htmlPaths.topLevelElement("h1") }); return converter.convertToHtml({file: docxFile}).then(function(result) { - assert.equal("

Hello.

", result.html); + assert.equal("

Hello.

", result.value); }); }); @@ -53,7 +53,7 @@ describe('mammoth', function() { var converter = new mammoth.Converter(); var docxPath = path.join(__dirname, "test-data/tiny-picture.docx"); return converter.convertToHtml({path: docxPath}).then(function(result) { - assert.equal(result.html, '

'); + assert.equal(result.value, '

'); }); }); }) -- cgit v1.2.3