2017-03-07 22:15:53 +00:00
|
|
|
import { assert } from "chai";
|
2017-03-09 09:45:01 +01:00
|
|
|
import { Styles } from "../styles";
|
2016-05-09 13:12:28 +01:00
|
|
|
|
|
|
|
describe("Styles", () => {
|
2016-05-26 15:08:34 +01:00
|
|
|
let styles: Styles;
|
2016-05-09 13:12:28 +01:00
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
styles = new Styles();
|
|
|
|
});
|
|
|
|
|
2016-05-26 15:08:34 +01:00
|
|
|
describe("#constructor()", () => {
|
2016-05-09 13:12:28 +01:00
|
|
|
|
2016-05-17 23:38:09 +01:00
|
|
|
it("should create styles with correct rootKey", () => {
|
2017-03-09 09:45:01 +01:00
|
|
|
const newJson = JSON.parse(JSON.stringify(styles));
|
2016-05-17 23:38:09 +01:00
|
|
|
assert.equal(newJson.rootKey, "w:styles");
|
2016-05-09 13:12:28 +01:00
|
|
|
});
|
|
|
|
});
|
2017-03-09 09:45:01 +01:00
|
|
|
});
|