From e627e1772c911eb90dd11755b7ac5665d4a015b3 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 19 Feb 2017 19:19:23 +0000 Subject: Tidy up nested complex field test case --- test/docx/body-reader.tests.js | 8 +++++--- 1 file 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 )); } -- cgit v1.2.3