aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-06-14 11:54:04 +0100
committerMichael Williamson <mike@zwobble.org>2015-06-14 11:54:04 +0100
commitaaabb8c8d6d3f0f61064d906ea86342a87bb0c3f (patch)
treeba29717adf0f561a44306d0fe99bab133e20ec58 /tests
parentd8ce710c8f675f48707057325376b1c27750eb77 (diff)
Remove document property on result from docx reading
Diffstat (limited to 'tests')
-rw-r--r--tests/docx/docx-reader.tests.js4
1 files changed, 2 insertions, 2 deletions
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");