From 620f275cf5bb0535b39f8cebf5c78a7e0669e9a7 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Fri, 1 Apr 2016 00:22:44 +0100 Subject: [PATCH] added body tests --- ts/tests/bodyTest.ts | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/ts/tests/bodyTest.ts b/ts/tests/bodyTest.ts index 7475a4d7fa..b19eee512c 100644 --- a/ts/tests/bodyTest.ts +++ b/ts/tests/bodyTest.ts @@ -16,9 +16,30 @@ describe.only('Body', () => { }); describe('#constructor()', () => { - - it("should create the correct xml components", () => { - console.log(body); + + it("should create the Section Properties", () => { + 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); }); }); }); \ No newline at end of file