Files
docx-js/src/file/paragraph/links/outline-level.spec.ts

18 lines
498 B
TypeScript
Raw Normal View History

2019-01-15 15:39:48 +01:00
import { assert } from "chai";
import { Utility } from "tests/utility";
import { OutlineLevel } from "./outline-level";
describe("ParagraphOutlineLevel", () => {
let outlineLevel: OutlineLevel;
describe("#constructor()", () => {
it("should create an outlineLevel with given value", () => {
2019-06-12 01:03:36 +01:00
outlineLevel = new OutlineLevel(0);
2019-01-15 15:39:48 +01:00
const newJson = Utility.jsonify(outlineLevel);
assert.equal(newJson.root[0].root.val, "0");
});
});
});