Files
docx-js/ts/tests/stylesTest.ts
2017-03-07 22:15:53 +00:00

21 lines
518 B
TypeScript

import { Styles } from "../styles";
import { assert } from "chai";
describe("Styles", () => {
let styles: Styles;
beforeEach(() => {
styles = new Styles();
});
describe("#constructor()", () => {
it("should create styles with correct rootKey", () => {
let styles = new Styles();
let stringifiedJson = JSON.stringify(styles);
let newJson = JSON.parse(stringifiedJson);
assert.equal(newJson.rootKey, "w:styles");
});
});
});