Files
docx-js/src/file/document/body/body.spec.ts

40 lines
1.2 KiB
TypeScript
Raw Normal View History

2018-01-25 01:21:03 +00:00
// import { assert } from "chai";
2018-01-25 01:21:03 +00:00
// import { Utility } from "../../../tests/utility";
import { Body } from "./";
2016-03-31 23:01:20 +01:00
2016-04-03 05:24:56 +01:00
describe("Body", () => {
2016-05-26 15:08:34 +01:00
let body: Body;
2016-03-31 23:01:20 +01:00
beforeEach(() => {
body = new Body();
});
2018-01-25 01:21:03 +00:00
// describe("#constructor()", () => {
// it("should create the Section Properties", () => {
// const newJson = Utility.jsonify(body);
// assert.equal(newJson.root[0].rootKey, "w:sectPr");
// });
// it("should create the Page Size", () => {
// const newJson = Utility.jsonify(body);
// assert.equal(newJson.root[1].rootKey, "w:pgSz");
// });
// it("should create the Page Margin", () => {
// const newJson = Utility.jsonify(body);
// assert.equal(newJson.root[2].rootKey, "w:pgMar");
// });
// it("should create the Columns", () => {
// const newJson = Utility.jsonify(body);
// assert.equal(newJson.root[3].rootKey, "w:cols");
// });
// it("should create the Document Grid", () => {
// const newJson = Utility.jsonify(body);
// assert.equal(newJson.root[4].rootKey, "w:docGrid");
// });
// });
2017-03-09 22:31:55 +00:00
});