aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-02-19 19:15:20 +0000
committerMichael Williamson <mike@zwobble.org>2017-02-19 19:15:20 +0000
commitedab9c72e7c3e26d479457c844a354e98045f130 (patch)
tree1fb2205c8f6383f340a489cf7cde4ffd48fce1ac
parent4f8ce5add5f14cd021d20b59acbc7e2d43d34caf (diff)
Use extracted matchers in additional test case
-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
));