fixed tests

This commit is contained in:
Dolan
2017-04-16 00:44:35 +01:00
parent 321be35918
commit 580f6eb633

View File

@ -40,6 +40,10 @@ describe("Formatter", () => {
});
let newJson = formatter.format(attributes);
newJson = Utility.jsonify(newJson);
if (newJson._attr === undefined) {
assert.fail();
return;
}
assert.isDefined(newJson._attr["w:rsidSect"]);
});
@ -49,6 +53,10 @@ describe("Formatter", () => {
});
let newJson = formatter.format(attributes);
newJson = Utility.jsonify(newJson);
if (newJson._attr === undefined) {
assert.fail();
return;
}
assert.isDefined(newJson._attr["w:val"]);
});