Files
docx-js/ts/docx/run/break.spec.ts

20 lines
476 B
TypeScript
Raw Normal View History

import { assert } from "chai";
import { Utility } from "../../tests/utility";
import { Break } from "./break";
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
});