UNPKG

docx

Version:

Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.

20 lines (17 loc) 494 B
import { expect } from "chai"; import { Formatter } from "export/formatter"; import { Outline } from "./outline"; describe("Outline", () => { describe("#constructor()", () => { it("should create", () => { const tree = new Formatter().format(new Outline()); expect(tree).to.deep.equal({ "a:ln": [ { "a:noFill": {}, }, ], }); }); }); });