2017-03-07 22:15:53 +00:00
|
|
|
import { assert } from "chai";
|
2017-03-09 22:56:08 +00:00
|
|
|
import { TextRun } from "../../../docx/run/text-run";
|
|
|
|
import { Utility } from "../../utility";
|
2016-07-12 08:46:26 +01:00
|
|
|
|
|
|
|
describe("TextRun", () => {
|
|
|
|
let run: TextRun;
|
|
|
|
|
|
|
|
describe("#constructor()", () => {
|
|
|
|
|
|
|
|
it("should add text into run", () => {
|
|
|
|
run = new TextRun("test");
|
2017-03-09 22:56:08 +00:00
|
|
|
const newJson = Utility.jsonify(run);
|
2016-07-12 08:46:26 +01:00
|
|
|
assert.equal(newJson.root[1].root, "test");
|
|
|
|
});
|
|
|
|
});
|
2017-03-09 22:56:08 +00:00
|
|
|
});
|