Add and fix tests

This commit is contained in:
Dolan
2018-01-31 23:24:55 +00:00
parent c895a9c7d9
commit 2f0ad3eeb2
5 changed files with 36 additions and 9 deletions

View File

@ -1,13 +1,13 @@
// import { assert } from "chai";
// import { Utility } from "../../../tests/utility";
import { Body } from "./";
// import { Body } from "./";
describe("Body", () => {
let body: Body;
// let body: Body;
beforeEach(() => {
body = new Body();
// body = new Body();
});
// describe("#constructor()", () => {

View File

@ -15,10 +15,9 @@ describe("Document", () => {
describe("#constructor()", () => {
it("should create valid JSON", () => {
const stringifiedJson = JSON.stringify(document);
let newJson;
try {
newJson = JSON.parse(stringifiedJson);
JSON.parse(stringifiedJson);
} catch (e) {
assert.isTrue(false);
}