From b972f404c37a2d947a88531d7400f4fcd74cffb4 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 3 Jul 2016 20:04:24 +0100 Subject: Check value when unrecognised element is read --- test/docx/body-reader.tests.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/docx/body-reader.tests.js b/test/docx/body-reader.tests.js index 91c2950..fa21f8c 100644 --- a/test/docx/body-reader.tests.js +++ b/test/docx/body-reader.tests.js @@ -617,6 +617,7 @@ describe("readXmlElement: ", function() { message: "An unrecognised element was ignored: w:not-an-element" }] ); + assert.deepEqual(result.value, []); }); test("w:bookmarkEnd is ignored without warning", function() { -- cgit v1.2.3