rearranged test locations

This commit is contained in:
Dolan Miu
2016-07-01 22:09:55 +01:00
parent 10554956f2
commit 8ecb8ed8f2
13 changed files with 101 additions and 49 deletions

View File

@ -0,0 +1,28 @@
/// <reference path="../../../typings/mocha/mocha.d.ts" />
/// <reference path="../../../typings/chai/chai.d.ts" />
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);
});
});
});