diff options
| author | Michael Williamson <mike@zwobble.org> | 2017-02-19 19:15:20 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2017-02-19 19:15:20 +0000 |
| commit | edab9c72e7c3e26d479457c844a354e98045f130 (patch) | |
| tree | 1fb2205c8f6383f340a489cf7cde4ffd48fce1ac | |
| parent | 4f8ce5add5f14cd021d20b59acbc7e2d43d34caf (diff) | |
Use extracted matchers in additional test case
| -rw-r--r-- | test/docx/body-reader.tests.js | 27 |
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 )); |
