fixed tests

This commit is contained in:
Dolan Miu
2016-05-02 22:39:03 +01:00
parent 060ee26225
commit f805d6bef7
6 changed files with 16 additions and 18 deletions

View File

@ -29,28 +29,27 @@ describe("Body", () => {
it("should create the Section Properties", () => {
var newJson = jsonify(body);
console.log(newJson);
assert.isDefined(newJson.body[0].sectPr);
assert.equal(newJson.root[0].rootKey, "w:sectPr");
});
it("should create the Page Size", () => {
var newJson = jsonify(body);
assert.isDefined(newJson.body[1].pgSz);
assert.equal(newJson.root[1].rootKey, "w:pgSz");
});
it("should create the Page Margin", () => {
var newJson = jsonify(body);
assert.isDefined(newJson.body[2].pgMar);
assert.equal(newJson.root[2].rootKey, "w:pgMar");
});
it("should create the Columns", () => {
var newJson = jsonify(body);
assert.isDefined(newJson.body[3].cols);
assert.equal(newJson.root[3].rootKey, "w:cols");
});
it("should create the Document Grid", () => {
var newJson = jsonify(body);
assert.isDefined(newJson.body[4].docGrid);
assert.equal(newJson.root[4].rootKey, "w:docGrid");
});
});
});