Files
docx-js/src/file/paragraph/run/formatting.spec.ts
2021-03-13 20:23:15 +00:00

23 lines
540 B
TypeScript

import { expect } from "chai";
import { Formatter } from "export/formatter";
import { Bold } from "./formatting";
describe("Bold", () => {
describe("#constructor()", () => {
it("should create", () => {
const currentBold = new Bold();
const tree = new Formatter().format(currentBold);
expect(tree).to.deep.equal({
"w:b": {
_attr: {
"w:val": true,
},
},
});
});
});
});