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

17 lines
434 B
TypeScript

import { assert } from "chai";
import { TextRun } from "../../../docx/run/text-run";
import { Utility } from "../../utility";
describe("TextRun", () => {
let run: TextRun;
describe("#constructor()", () => {
it("should add text into run", () => {
run = new TextRun("test");
const newJson = Utility.jsonify(run);
assert.equal(newJson.root[1].root, "test");
});
});
});