From aaabb8c8d6d3f0f61064d906ea86342a87bb0c3f Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 14 Jun 2015 11:54:04 +0100 Subject: Remove document property on result from docx reading --- tests/docx/docx-reader.tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/docx/docx-reader.tests.js b/tests/docx/docx-reader.tests.js index 31c7f56..e8d5511 100644 --- a/tests/docx/docx-reader.tests.js +++ b/tests/docx/docx-reader.tests.js @@ -22,7 +22,7 @@ describe("docx-reader", function() { "word/document.xml": testData("simple/word/document.xml") }); return docxReader.read({file: docxFile}).then(function(result) { - assert.deepEqual(expectedDocument, result.document); + assert.deepEqual(expectedDocument, result.value); }); }); @@ -32,7 +32,7 @@ describe("docx-reader", function() { "word/_rels/document.xml.rels": testData("hyperlinks/word/_rels/document.xml.rels") }); return docxReader.read({file: docxFile}).then(function(result) { - var paragraph = result.document.children[0]; + var paragraph = result.value.children[0]; assert.equal(1, paragraph.children.length); var hyperlink = paragraph.children[0]; assert.equal(hyperlink.href, "http://www.example.com"); -- cgit v1.2.3