Skip to content

Commit

Permalink
fix test quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Dec 8, 2017
1 parent 9ae71c4 commit c135b3f
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions test/core/directives/for.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ describe("For Directive", function() {
}
});

it('should render a list', function() {
it("should render a list", function() {
return wait(function() {
expect(ul.childNodes.length).to.equal(5);
});
});

it('should update a list when adding items', function() {
it("should update a list when adding items", function() {
var items = app.get("items");
items.push(6);
app.set("items", items);
Expand All @@ -26,7 +26,7 @@ describe("For Directive", function() {
});
});

it('should update a list when removing items', function() {
it("should update a list when removing items", function() {
var items = app.get("items");
items.pop();
items.pop();
Expand All @@ -38,10 +38,10 @@ describe("For Directive", function() {
});
});

it('should not be present at runtime', function() {
expect(ul.childNodes[0].getAttribute("m-for")).to.be['null'];
expect(ul.childNodes[1].getAttribute("m-for")).to.be['null'];
expect(ul.childNodes[2].getAttribute("m-for")).to.be['null'];
it("should not be present at runtime", function() {
expect(ul.childNodes[0].getAttribute("m-for")).to.be["null"];
expect(ul.childNodes[1].getAttribute("m-for")).to.be["null"];
expect(ul.childNodes[2].getAttribute("m-for")).to.be["null"];
});
});

Expand All @@ -56,7 +56,7 @@ describe("For Directive", function() {
}
});

it('should render a list', function() {
it("should render a list", function() {
return wait(function() {
expect(ul.childNodes.length).to.equal(5);
expect(ul.childNodes[0].innerHTML).to.equal("1 0");
Expand All @@ -67,7 +67,7 @@ describe("For Directive", function() {
});
});

it('should update a list', function() {
it("should update a list", function() {
var items = app.get("items");
items.push(6);
app.set("items", items);
Expand All @@ -83,13 +83,13 @@ describe("For Directive", function() {
});
});

it('should not be present at runtime', function() {
expect(ul.childNodes[0].getAttribute("m-for")).to.be['null'];
expect(ul.childNodes[1].getAttribute("m-for")).to.be['null'];
expect(ul.childNodes[2].getAttribute("m-for")).to.be['null'];
expect(ul.childNodes[3].getAttribute("m-for")).to.be['null'];
expect(ul.childNodes[4].getAttribute("m-for")).to.be['null'];
expect(ul.childNodes[5].getAttribute("m-for")).to.be['null'];
it("should not be present at runtime", function() {
expect(ul.childNodes[0].getAttribute("m-for")).to.be["null"];
expect(ul.childNodes[1].getAttribute("m-for")).to.be["null"];
expect(ul.childNodes[2].getAttribute("m-for")).to.be["null"];
expect(ul.childNodes[3].getAttribute("m-for")).to.be["null"];
expect(ul.childNodes[4].getAttribute("m-for")).to.be["null"];
expect(ul.childNodes[5].getAttribute("m-for")).to.be["null"];
});
});

Expand Down

0 comments on commit c135b3f

Please sign in to comment.