2017-03-07 22:15:53 +00:00
|
|
|
import { assert } from "chai";
|
2017-03-09 22:56:08 +00:00
|
|
|
import { Break } from "../../../docx/run/break";
|
|
|
|
import { Utility } from "../../utility";
|
2016-07-18 18:49:11 +01:00
|
|
|
|
2016-07-18 19:17:19 +01:00
|
|
|
describe("Break", () => {
|
2016-07-18 18:49:11 +01:00
|
|
|
let currentBreak: Break;
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
currentBreak = new Break();
|
|
|
|
});
|
|
|
|
|
|
|
|
describe("#constructor()", () => {
|
|
|
|
it("should create a Break with correct root key", () => {
|
2017-03-09 22:56:08 +00:00
|
|
|
const newJson = Utility.jsonify(currentBreak);
|
2016-07-18 18:49:11 +01:00
|
|
|
assert.equal(newJson.rootKey, "w:br");
|
|
|
|
});
|
|
|
|
});
|
2017-03-09 22:56:08 +00:00
|
|
|
});
|