Skip to content

Commit

Permalink
* spec clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
rafde authored and paulfalgout committed Mar 11, 2019
1 parent d015799 commit ea8a1af
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/javascripts/childviewContainer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe("childview container", function(){
new Backbone.View(),
new Backbone.View(),
new Backbone.View()
]
];
container = new Backbone.ChildViewContainer(views);
});

Expand Down Expand Up @@ -85,11 +85,11 @@ describe("childview container", function(){
});

describe("when removing a view", function(){
var container, view, model, col, cust;
var container, view, model, cust;

beforeEach(function(){
model = new Backbone.Model();
cust = "custome indexer";
cust = "custom indexer";

view = new Backbone.View({
model: model
Expand All @@ -101,9 +101,9 @@ describe("childview container", function(){
container.remove(view);
});

it("should update the size of the chidren", function(){
it("should update the size of the children", function(){
expect(container.length).toBe(0);
})
});

it("should remove the index by model", function(){
var v = container.findByModel(model);
Expand Down Expand Up @@ -230,7 +230,7 @@ describe("childview container", function(){
container = new Backbone.ChildViewContainer();
container.add(view);

container.each(function(v, k){
container.each(function(v){
views.push(v);
});
});
Expand Down

0 comments on commit ea8a1af

Please sign in to comment.