Browse Source

Update sectors view tests

pull/187/head
Artur Arseniev 9 years ago
parent
commit
de5e4b2e3a
  1. 2
      test/specs/style_manager/index.js
  2. 4
      test/specs/style_manager/view/SectorsView.js

2
test/specs/style_manager/index.js

@ -180,8 +180,8 @@ describe.only('StyleManager', function() {
Models.run();
SectorView.run();
/*
SectorsView.run();
/*
PropertyView.run();
PropertySelectView.run();
PropertyRadioView.run();

4
test/specs/style_manager/view/SectorsView.js

@ -34,12 +34,12 @@ module.exports = {
});
it("Collection is empty", function (){
view.el.innerHTML.should.be.empty;
expect(view.el.innerHTML).toEqual('');
});
it("Add new sectors", function (){
view.collection.add([{}, {}]);
view.el.children.length.should.equal(2);
expect(view.el.children.length).toEqual(2);
});
});

Loading…
Cancel
Save