made all tests passing

This commit is contained in:
Dolan Miu
2016-04-09 04:53:42 +01:00
parent aed59754cc
commit 84610bd72f
9 changed files with 81 additions and 20 deletions

View File

@ -8,20 +8,20 @@ function jsonify(obj: Object) {
return JSON.parse(stringifiedJson);
}
describe("Style", () => {
describe("ParagraphStyle", () => {
var style: Style;
describe("#constructor()", () => {
it("should create a style with given value", () => {
style = new Style("test");
var newJson = jsonify(style);
assert(newJson.pStyle[0]._attrs.val === "test");
assert(newJson.pStyle[0]._attr.val === "test");
});
it("should create a style with blank val", () => {
style = new Style("");
var newJson = jsonify(style);
assert(newJson.pStyle[0]._attrs.val === "");
assert(newJson.pStyle[0]._attr.val === "");
});
});