This commit is contained in:
Dolan
2017-03-09 22:56:08 +00:00
parent 5fac776dca
commit 7022b39d2e
21 changed files with 138 additions and 181 deletions

View File

@ -1,10 +1,6 @@
import { Break } from "../../../docx/run/break";
import { assert } from "chai";
function jsonify(obj: Object) {
let stringifiedJson = JSON.stringify(obj);
return JSON.parse(stringifiedJson);
}
import { Break } from "../../../docx/run/break";
import { Utility } from "../../utility";
describe("Break", () => {
let currentBreak: Break;
@ -15,8 +11,8 @@ describe("Break", () => {
describe("#constructor()", () => {
it("should create a Break with correct root key", () => {
let newJson = jsonify(currentBreak);
const newJson = Utility.jsonify(currentBreak);
assert.equal(newJson.rootKey, "w:br");
});
});
});
});