Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.APP = window.APP || {};
- APP.CalcModel = Backbone.Model.extend({
- defaults: {
- errDepartCity: [],
- errDestinCity: [],
- errShippOptionsWeight: [],
- errShippOptionsVolume: []
- }
- });
- describe("fill model check", function() {
- it("should errDepartCity is not empty after init", function() {
- var model = new APP.CalcModel({
- errDepartCity: ['qwerty', 'asdfgh'],
- errDestinCity: ['qwerty', 'asdfgh'],
- errShippOptionsWeight: ['qwerty', 'asdfgh'],
- errShippOptionsVolume: ['qwerty', 'asdfgh']
- });
- // console.log(model);
- expect(model.get('errDepartCity').length).toEqual(0);
- });
- });
Add Comment
Please, Sign In to add comment