///
///
import * as docx from "../docx";
import {assert, } from "chai";
describe('Calculator', () => {
var document: docx.Document;
/*beforeEach(function () {
subject = new Calculator();
});
describe('#add', () => {
it('should add two numbers together', () => {
var result : number = subject.add(2, 3);
if (result !== 5) {
throw new Error('Expected 2 + 3 = 5 but was ' + result);
}
});
});*/
describe('#test', () => {
var document = new docx.Document();
var paragraph = new docx.Paragraph();
//var body = new docx.Body();
console.log(paragraph);
console.log(JSON.stringify(paragraph, null, " "));
console.log(document.test());
it("should create valid JSON", () => {
var stringifiedJson = JSON.stringify(document);
var newJson;
try {
newJson = JSON.parse(stringifiedJson);
} catch (e) {
assert.isTrue(false);
}
assert.isTrue(true);
});
});
});