Files
docx-js/ts/docx/run/tab.spec.ts

20 lines
438 B
TypeScript
Raw Normal View History

import { assert } from "chai";
import { Utility } from "../../tests/utility";
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", () => {
2017-03-09 22:56:08 +00:00
const newJson = Utility.jsonify(tab);
2016-07-18 19:17:19 +01:00
assert.equal(newJson.rootKey, "w:tab");
});
});
2017-03-09 22:56:08 +00:00
});