fixing tests and formatter

This commit is contained in:
Dolan Miu
2016-04-09 21:12:55 +01:00
parent f68a2aff56
commit 50e2344d2c
4 changed files with 10 additions and 16 deletions

View File

@ -36,11 +36,12 @@ describe("Formatter", () => {
assert(stringifiedJson.indexOf("xmlKeys") < 0);
});
it("should format simple paragraph with bold text", () => {
it.only("should format simple paragraph with bold text", () => {
var paragraph = new docx.Paragraph();
paragraph.addText(new docx.TextRun("test").bold());
var newJson = formatter.format(paragraph);
newJson = jsonify(newJson);
console.log(JSON.stringify(newJson, null, " "));
assert.isDefined(newJson["w:p"][3]["w:r"][0]["w:rPr"][0]["w:b"][0]["_attr"]["w:val"]);
});