Add tests

This commit is contained in:
Dolan
2021-03-13 20:23:15 +00:00
parent cc9a966f53
commit 4bc0421055
6 changed files with 77 additions and 11 deletions

View 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,
},
},
});
});
});
});