2017-03-07 22:15:53 +00:00
|
|
|
import { assert } from "chai";
|
2017-09-17 00:00:41 +01:00
|
|
|
|
|
|
|
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
|
|
|
});
|