diff --git a/ts/tests/stylesTest.ts b/ts/tests/stylesTest.ts index de37b71073..8e2d24021d 100644 --- a/ts/tests/stylesTest.ts +++ b/ts/tests/stylesTest.ts @@ -12,11 +12,12 @@ describe("Styles", () => { describe('#constructor()', () => { - it("should not add val with empty constructor", () => { - var newAttrs = new Styles(); - var stringifiedJson = JSON.stringify(newAttrs); + it("should create styles with correct rootKey", () => { + var styles = new Styles(); + var stringifiedJson = JSON.stringify(styles); var newJson = JSON.parse(stringifiedJson); - assert.isUndefined(newJson.root.val); + + assert.equal(newJson.rootKey, "w:styles"); }); }); }); \ No newline at end of file