1
0
Fork 0

Rewrote hooks and plugin handling

This commit is contained in:
Joost De Cock 2018-12-09 14:17:46 +01:00
parent 6e404afba6
commit 84853346a2
11 changed files with 358 additions and 228 deletions

View file

@ -38,3 +38,10 @@ it("Should return attributes as array", () => {
);
expect(a.getAsArray("nope")).to.equal(false);
});
it("Should render attributes as CSS", () => {
let a = newAttr()
.set("line-height", 1.2)
.add("border", "1px solid red");
expect(a.renderAsCss()).to.equal(" line-height:1.2; border:1px solid red;");
});