✨ Rewrote hooks and plugin handling
This commit is contained in:
parent
6e404afba6
commit
84853346a2
11 changed files with 358 additions and 228 deletions
|
@ -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;");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue