added border

This commit is contained in:
Dolan Miu
2016-03-29 04:50:23 +01:00
parent 672cbb6922
commit e2929bc3a9
6 changed files with 92 additions and 10 deletions

View File

@ -67,4 +67,13 @@ describe('Paragraph', () => {
assert(newJson.p[1].pPr[1].pStyle[0]._attrs.val === "Title");
});
});
describe("#center()", () => {
it("should add center alignment to JSON", () => {
paragraph.center();
var newJson = jsonify(paragraph);
assert(newJson.p[1].pPr[1].jc[0]._attrs.val === "center");
});
});
});