Fix style

This commit is contained in:
Dolan
2018-12-07 15:34:27 +00:00
parent 5efc9e383b
commit bf18154fcf

View File

@ -25,21 +25,23 @@ describe("Numbering", () => {
{ "w:multiLevelType": [{ _attr: { "w:val": "hybridMultilevel" } }] }, { "w:multiLevelType": [{ _attr: { "w:val": "hybridMultilevel" } }] },
]); ]);
abstractNums.filter((el) => el["w:lvl"]).forEach((el, ix) => { abstractNums
expect(Object.keys(el)).to.have.lengthOf(1); .filter((el) => el["w:lvl"])
expect(Object.keys(el["w:lvl"]).sort()).to.deep.equal(["_attr", "w:start", "w:lvlJc", "w:numFmt", "w:pPr", "w:rPr"]); .forEach((el, ix) => {
expect(el["w:lvl"]).to.have.deep.members([ expect(Object.keys(el)).to.have.lengthOf(1);
{ _attr: { "w:ilvl": ix, "w15:tentative": 1 } }, expect(Object.keys(el["w:lvl"]).sort()).to.deep.equal(["_attr", "w:start", "w:lvlJc", "w:numFmt", "w:pPr", "w:rPr"]);
{ "w:start": [{ _attr: { "w:val": 1 } }] }, expect(el["w:lvl"]).to.have.deep.members([
{ "w:lvlJc": [{ _attr: { "w:val": "left" } }] }, { _attr: { "w:ilvl": ix, "w15:tentative": 1 } },
{ "w:numFmt": [{ _attr: { "w:val": "bullet" } }] }, { "w:start": [{ _attr: { "w:val": 1 } }] },
]); { "w:lvlJc": [{ _attr: { "w:val": "left" } }] },
// Once chai 4.0.0 lands and #644 is resolved, we can add the following to the test: { "w:numFmt": [{ _attr: { "w:val": "bullet" } }] },
// {"w:lvlText": [{"_attr": {"w:val": "•"}}]}, ]);
// {"w:rPr": [{"w:rFonts": [{"_attr": {"w:ascii": "Symbol", "w:cs": "Symbol", "w:eastAsia": "Symbol", "w:hAnsi": "Symbol", "w:hint": "default"}}]}]}, // Once chai 4.0.0 lands and #644 is resolved, we can add the following to the test:
// {"w:pPr": [{"_attr": {}}, // {"w:lvlText": [{"_attr": {"w:val": "•"}}]},
// {"w:ind": [{"_attr": {"w:left": 720, "w:hanging": 360}}]}]}, // {"w:rPr": [{"w:rFonts": [{"_attr": {"w:ascii": "Symbol", "w:cs": "Symbol", "w:eastAsia": "Symbol", "w:hAnsi": "Symbol", "w:hint": "default"}}]}]},
}); // {"w:pPr": [{"_attr": {}},
// {"w:ind": [{"_attr": {"w:left": 720, "w:hanging": 360}}]}]},
});
}); });
}); });