added body tests

This commit is contained in:
Dolan Miu
2016-04-01 00:22:44 +01:00
parent d0fb6f485d
commit 620f275cf5

View File

@ -16,9 +16,30 @@ describe.only('Body', () => {
}); });
describe('#constructor()', () => { describe('#constructor()', () => {
it("should create the correct xml components", () => { it("should create the Section Properties", () => {
console.log(body); var newJson = jsonify(body);
assert.isDefined(newJson.body[0].sectPr);
});
it("should create the Page Size", () => {
var newJson = jsonify(body);
assert.isDefined(newJson.body[1].pgSz);
});
it("should create the Page Margin", () => {
var newJson = jsonify(body);
assert.isDefined(newJson.body[2].pgMar);
});
it("should create the Columns", () => {
var newJson = jsonify(body);
assert.isDefined(newJson.body[3].cols);
});
it("should create the Document Grid", () => {
var newJson = jsonify(body);
assert.isDefined(newJson.body[4].docGrid);
}); });
}); });
}); });