docx
Version:
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
13 lines (10 loc) • 412 B
text/typescript
import { expect } from "chai";
import { DefaultStyle } from "./default-style";
describe("DefaultStyle", () => {
it("creates an initially empty property object", () => {
const style = DefaultStyle();
expect(style).to.have.property("w:styles");
expect(style["w:styles"].length).to.be.greaterThan(1);
expect(style["w:styles"][1]).to.have.property("w:docDefaults");
});
});