2019-06-26 22:12:18 +01:00
|
|
|
import { expect } from "chai";
|
2017-09-17 00:00:41 +01:00
|
|
|
|
2022-06-26 23:26:42 +01:00
|
|
|
import { Formatter } from "@export/formatter";
|
2018-10-26 01:04:07 +01:00
|
|
|
|
2017-09-17 00:00:41 +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
|
|
|
});
|