fixed test

This commit is contained in:
Dolan Miu
2016-05-17 23:38:09 +01:00
parent ea39da6de3
commit 977c76d95a

View File

@ -12,11 +12,12 @@ describe("Styles", () => {
describe('#constructor()', () => { describe('#constructor()', () => {
it("should not add val with empty constructor", () => { it("should create styles with correct rootKey", () => {
var newAttrs = new Styles(); var styles = new Styles();
var stringifiedJson = JSON.stringify(newAttrs); var stringifiedJson = JSON.stringify(styles);
var newJson = JSON.parse(stringifiedJson); var newJson = JSON.parse(stringifiedJson);
assert.isUndefined(newJson.root.val);
assert.equal(newJson.rootKey, "w:styles");
}); });
}); });
}); });