aboutsummaryrefslogtreecommitdiff
path: root/tests/docx-reader.tests.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-04-11 20:12:04 +0100
committerMichael Williamson <mike@zwobble.org>2013-04-11 20:12:04 +0100
commitc57b900666a82b4ccce033a923e53906255078c0 (patch)
treec8619bf48c3bca17ea3c429194b96c0b3937e16b /tests/docx-reader.tests.js
parent57622e1584e7367aa41d4a09f8db33c703a6a0df (diff)
Don't guess what the input for conversion is
Diffstat (limited to 'tests/docx-reader.tests.js')
-rw-r--r--tests/docx-reader.tests.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/docx-reader.tests.js b/tests/docx-reader.tests.js
index 58c5f6b..4fc487f 100644
--- a/tests/docx-reader.tests.js
+++ b/tests/docx-reader.tests.js
@@ -22,7 +22,7 @@ describe("docx-reader", function() {
var docxFile = createFakeDocxFile({
"word/document.xml": testData("simple/word/document.xml")
});
- return docxReader.read(docxFile).then(function(result) {
+ return docxReader.read({file: docxFile}).then(function(result) {
assert.deepEqual(expectedDocument, result.document);
});
});
@@ -32,7 +32,7 @@ describe("docx-reader", function() {
"word/document.xml": testData("hyperlinks/word/document.xml"),
"word/_rels/document.xml.rels": testData("hyperlinks/word/_rels/document.xml.rels")
});
- return docxReader.read(docxFile).then(function(result) {
+ return docxReader.read({file: docxFile}).then(function(result) {
var paragraph = result.document.children[0];
assert.equal(1, paragraph.children.length);
var hyperlink = paragraph.children[0];