1
0
Fork 0

Tests for hooks

This commit is contained in:
Joost De Cock 2018-08-12 12:37:30 +02:00
parent 7803d1b996
commit 6b1c3fbaaf
3 changed files with 159 additions and 20 deletions

View file

@ -5,12 +5,12 @@ function newAttr() {
return new Point(0, 0).attributes;
}
it("should return false when getting an unset attribute", () => {
it("Should return false when getting an unset attribute", () => {
let a = newAttr();
expect(a.get("test")).to.equal(false);
});
it("should render attributes correctly", () => {
it("Should render attributes correctly", () => {
let a = newAttr()
.set("class", "test")
.add("class", "render")
@ -18,7 +18,7 @@ it("should render attributes correctly", () => {
expect(a.render()).to.equal(' class="test render" transform="scale(1)"');
});
it("should render attributes with given prefix only", () => {
it("Should render attributes with given prefix only", () => {
let a = newAttr()
.set("class", "test")
.add("class", "render")