2016-05-09 13:12:28 +01:00
|
|
|
/// <reference path="../typings/mocha/mocha.d.ts" />
|
|
|
|
/// <reference path="../typings/chai/chai.d.ts" />
|
|
|
|
import {Styles} from "../styles";
|
|
|
|
import {assert} from "chai";
|
|
|
|
|
|
|
|
describe("Styles", () => {
|
|
|
|
var styles: Styles;
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
styles = new Styles();
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('#constructor()', () => {
|
|
|
|
|
2016-05-17 23:38:09 +01:00
|
|
|
it("should create styles with correct rootKey", () => {
|
|
|
|
var styles = new Styles();
|
|
|
|
var stringifiedJson = JSON.stringify(styles);
|
2016-05-09 13:12:28 +01:00
|
|
|
var newJson = JSON.parse(stringifiedJson);
|
2016-05-17 23:38:09 +01:00
|
|
|
|
|
|
|
assert.equal(newJson.rootKey, "w:styles");
|
2016-05-09 13:12:28 +01:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|