UNPKG

docx

Version:

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

23 lines (18 loc) 658 B
import { expect } from "chai"; import { Formatter } from "export/formatter"; import { MathEndingCharacter } from "./math-ending-char"; describe("MathEndingCharacter", () => { describe("#constructor()", () => { it("should create a MathEndingCharacter with correct root key", () => { const mathEndingCharacter = new MathEndingCharacter("]"); const tree = new Formatter().format(mathEndingCharacter); expect(tree).to.deep.equal({ "m:endChr": { _attr: { "m:val": "]", }, }, }); }); }); });