Add and fix tests
This commit is contained in:
@ -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()", () => {
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user