Files
docx-js/ts/tests/docx/run/tabTests.ts

19 lines
447 B
TypeScript
Raw Normal View History

import { assert } from "chai";
2017-03-09 22:56:08 +00:00
import { Tab } from "../../../docx/run/tab";
import { Utility } from "../../utility";
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
});