Files
docx-js/ts/tests/docx/document/documentTest.ts
2017-03-09 22:31:55 +00:00

26 lines
589 B
TypeScript

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