aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/docx/body-reader.tests.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/docx/body-reader.tests.js b/test/docx/body-reader.tests.js
index 1541ce9..e66bd5e 100644
--- a/test/docx/body-reader.tests.js
+++ b/test/docx/body-reader.tests.js
@@ -287,9 +287,10 @@ test("complex fields", (function() {
beginXml,
hyperlinkInstrText,
separateXml,
- hyperlinkRunXml,
beginXml,
authorInstrText,
+ separateXml,
+ runOfText("John Doe"),
endXml,
endXml
]);
@@ -298,13 +299,14 @@ test("complex fields", (function() {
assertThat(paragraph.children, contains(
isEmptyRun,
isEmptyHyperlinkedRun,
+ isEmptyHyperlinkedRun,
+ isEmptyHyperlinkedRun,
isHyperlinkedRun({
children: contains(
- isText("this is a hyperlink")
+ isText("John Doe")
)
}),
isEmptyHyperlinkedRun,
- isEmptyRun,
isEmptyRun
));
}