Guest User

Untitled

a guest
May 5th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. window.APP = window.APP || {};
  2.  
  3. APP.CalcModel = Backbone.Model.extend({
  4. defaults: {
  5. errDepartCity: [],
  6. errDestinCity: [],
  7. errShippOptionsWeight: [],
  8. errShippOptionsVolume: []
  9. }
  10. });
  11.  
  12. describe("fill model check", function() {
  13.  
  14. it("should errDepartCity is not empty after init", function() {
  15. var model = new APP.CalcModel({
  16. errDepartCity: ['qwerty', 'asdfgh'],
  17. errDestinCity: ['qwerty', 'asdfgh'],
  18. errShippOptionsWeight: ['qwerty', 'asdfgh'],
  19. errShippOptionsVolume: ['qwerty', 'asdfgh']
  20. });
  21.  
  22. // console.log(model);
  23.  
  24. expect(model.get('errDepartCity').length).toEqual(0);
  25. });
  26.  
  27. });
Add Comment
Please, Sign In to add comment