added paragraph properties and style tests

This commit is contained in:
Dolan Miu
2016-05-09 13:12:28 +01:00
parent ea1390b86b
commit 1e91d63604
2 changed files with 29 additions and 0 deletions

View File

@ -28,6 +28,13 @@ describe("Paragraph", () => {
}
assert.isTrue(true);
});
it("should create have valid properties", () => {
var stringifiedJson = JSON.stringify(paragraph);
var newJson = JSON.parse(stringifiedJson);
assert.equal(newJson.root[1].root[0].rootKey, "w:pPr");
});
});
describe("#heading1()", () => {