fixed test
This commit is contained in:
@ -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");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
Reference in New Issue
Block a user