24 lines
575 B
TypeScript
24 lines
575 B
TypeScript
/// <reference path="../typings/mocha/mocha.d.ts" />
|
|
/// <reference path="../typings/chai/chai.d.ts" />
|
|
import {Body} from "../docx/document/body";
|
|
import {assert} from "chai";
|
|
|
|
function jsonify(obj: Object) {
|
|
var stringifiedJson = JSON.stringify(obj);
|
|
return JSON.parse(stringifiedJson);
|
|
}
|
|
|
|
describe.only('Body', () => {
|
|
var body: Body;
|
|
|
|
beforeEach(() => {
|
|
body = new Body();
|
|
});
|
|
|
|
describe('#constructor()', () => {
|
|
|
|
it("should create the correct xml components", () => {
|
|
console.log(body);
|
|
});
|
|
});
|
|
}); |