Files
docx-js/src/file/paragraph/links/outline-level.spec.ts
Dolan f33d6da65a Merge branch 'master' into feat/declaritive
# Conflicts:
#	src/file/paragraph/formatting/border.spec.ts
#	src/file/paragraph/links/outline-level.spec.ts
#	src/file/paragraph/run/run.spec.ts
2019-07-02 01:33:41 +01:00

24 lines
648 B
TypeScript

import { expect } from "chai";
import { Formatter } from "export/formatter";
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 tree = new Formatter().format(outlineLevel);
expect(tree).to.deep.equal({
"w:outlineLvl": {
_attr: {
"w:val": 0,
},
},
});
});
});
});