diff options
| author | Michael Williamson <mike@zwobble.org> | 2017-02-19 19:19:23 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2017-02-19 19:19:23 +0000 |
| commit | e627e1772c911eb90dd11755b7ac5665d4a015b3 (patch) | |
| tree | e00b32e72ce97478d05cc9d374c5290093818300 | |
| parent | edab9c72e7c3e26d479457c844a354e98045f130 (diff) | |
Tidy up nested complex field test case
| -rw-r--r-- | test/docx/body-reader.tests.js | 8 |
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 )); } |
