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

@ -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);
}