diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-07-03 19:19:21 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-07-03 19:20:00 +0100 |
| commit | 0b56dfce42c3944cce47e284608e6806f4c839c3 (patch) | |
| tree | 5f96f9c2908f1c5b00a7192e71d4c192abd7cf47 /tests/docx/numbering-xml.tests.js | |
| parent | 627c4a755395e313234bdb1914d168392006c483 (diff) | |
Move tests to test for easier Mocha usage
Diffstat (limited to 'tests/docx/numbering-xml.tests.js')
| -rw-r--r-- | tests/docx/numbering-xml.tests.js | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/docx/numbering-xml.tests.js b/tests/docx/numbering-xml.tests.js deleted file mode 100644 index 2fea5fb..0000000 --- a/tests/docx/numbering-xml.tests.js +++ /dev/null @@ -1,32 +0,0 @@ -var duck = require("duck"); - -var readNumberingXml = require("../../lib/docx/numbering-xml").readNumberingXml; -var XmlElement = require("../../lib/xml").Element; -var test = require("../testing").test; - - -describe('readNumberingXml', function() { - test('w:num element inherits levels from w:abstractNum', function() { - var numbering = readNumberingXml({ - root: new XmlElement("w:numbering", {}, [ - new XmlElement("w:abstractNum", {"w:abstractNumId": "42"}, [ - new XmlElement("w:lvl", {"w:ilvl": "0"}, [ - new XmlElement("w:numFmt", {"w:val": "bullet"}) - ]), - new XmlElement("w:lvl", {"w:ilvl": "1"}, [ - new XmlElement("w:numFmt", {"w:val": "decimal"}) - ]) - ]), - new XmlElement("w:num", {"w:numId": "47"}, [ - new XmlElement("w:abstractNumId", {"w:val": "42"}) - ]) - ]) - }); - duck.assertThat(numbering.findLevel("47", "0"), duck.hasProperties({ - isOrdered: false - })); - duck.assertThat(numbering.findLevel("47", "1"), duck.hasProperties({ - isOrdered: true - })); - }); -}); |
