docx
Version:
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
24 lines (19 loc) • 648 B
text/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,
},
},
});
});
});
});