Add tests
This commit is contained in:
22
src/file/paragraph/run/formatting.spec.ts
Normal file
22
src/file/paragraph/run/formatting.spec.ts
Normal file
@ -0,0 +1,22 @@
|
||||
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,
|
||||
},
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user