Add OutlineLevel Paragraph property

This commit is contained in:
fmuscolino
2019-01-15 15:39:48 +01:00
parent 383c6d769f
commit b0ee0305fb
5 changed files with 61 additions and 1 deletions

View File

@ -0,0 +1,23 @@
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", () => {
outlineLevel = new OutlineLevel("0");
const newJson = Utility.jsonify(outlineLevel);
assert.equal(newJson.root[0].root.val, "0");
});
it("should create an outlineLevel with blank val", () => {
outlineLevel = new OutlineLevel("");
const newJson = Utility.jsonify(outlineLevel);
assert.equal(newJson.root[0].root.val, "");
});
});
});