Files
docx-js/src/file/paragraph/run/tab.spec.ts

23 lines
477 B
TypeScript
Raw Normal View History

2019-06-26 22:12:18 +01:00
import { expect } from "chai";
import { Formatter } from "@export/formatter";
2018-10-26 01:04:07 +01:00
import { Tab } from "./tab";
2016-07-18 19:17:19 +01:00
describe("Tab", () => {
let tab: Tab;
beforeEach(() => {
tab = new Tab();
});
describe("#constructor()", () => {
it("should create a Tab with correct root key", () => {
2019-06-26 22:12:18 +01:00
const tree = new Formatter().format(tab);
expect(tree).to.deep.equal({
"w:tab": {},
});
2016-07-18 19:17:19 +01:00
});
});
2017-03-09 22:56:08 +00:00
});