fixing tests

This commit is contained in:
Dolan Miu
2016-05-01 22:24:20 +01:00
parent 3f8d23662e
commit 879ac13863
9 changed files with 35 additions and 30 deletions

View File

@ -15,13 +15,14 @@ describe("ParagraphStyle", () => {
it("should create a style with given value", () => {
style = new Style("test");
var newJson = jsonify(style);
assert(newJson.pStyle[0]._attr.val === "test");
console.log(newJson.root[0].root.val);
assert.equal(newJson.root[0].root.val, "test");
});
it("should create a style with blank val", () => {
style = new Style("");
var newJson = jsonify(style);
assert(newJson.pStyle[0]._attr.val === "");
assert.equal(newJson.root[0].root.val, "");
});
});