Files
docx-js/ts/tests/docx/run/breakTests.ts
2017-03-09 22:56:08 +00:00

19 lines
485 B
TypeScript

import { assert } from "chai";
import { Break } from "../../../docx/run/break";
import { Utility } from "../../utility";
describe("Break", () => {
let currentBreak: Break;
beforeEach(() => {
currentBreak = new Break();
});
describe("#constructor()", () => {
it("should create a Break with correct root key", () => {
const newJson = Utility.jsonify(currentBreak);
assert.equal(newJson.rootKey, "w:br");
});
});
});