Files
docx-js/ts/tests/docx/document/documentTest.ts
2017-03-07 22:15:53 +00:00

25 lines
586 B
TypeScript

import * as docx from "../../../docx";
import { assert } from "chai";
describe("Document", () => {
let document: docx.Document;
beforeEach(() => {
document = new docx.Document();
});
describe("#constructor()", () => {
it("should create valid JSON", () => {
let stringifiedJson = JSON.stringify(document);
let newJson;
try {
newJson = JSON.parse(stringifiedJson);
} catch (e) {
assert.isTrue(false);
}
assert.isTrue(true);
});
});
});