aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/docx/body-reader.tests.js27
1 files changed, 4 insertions, 23 deletions
diff --git a/test/docx/body-reader.tests.js b/test/docx/body-reader.tests.js
index a7633a8..1541ce9 100644
--- a/test/docx/body-reader.tests.js
+++ b/test/docx/body-reader.tests.js
@@ -297,32 +297,13 @@ test("complex fields", (function() {
assertThat(paragraph.children, contains(
isEmptyRun,
- isRun({
- children: contains(
- isHyperlink({
- href: uri,
- children: []
- })
- )
- }),
- isRun({
- children: contains(
- isHyperlink({
- href: uri,
- children: contains(
- isText("this is a hyperlink")
- )
- })
- )
- }),
- isRun({
+ isEmptyHyperlinkedRun,
+ isHyperlinkedRun({
children: contains(
- isHyperlink({
- href: uri,
- children: []
- })
+ isText("this is a hyperlink")
)
}),
+ isEmptyHyperlinkedRun,
isEmptyRun,
isEmptyRun
));