it('should fill the return value with its properties', function () { var model = new Model({ x: 1 }); var value = model.valueOf(); expect(value.x).toBe(1); });
it('should not return its stored context directly', function () { var model = new Model({ x: 1 }); var value = model.valueOf(); model.set('y', 1); expect(value.y).toBeUndefined(); });
it('should return a plain object', function () { var model = new Model({ x: 1 }); var value = model.valueOf(); expect(value).toBeOfType('object'); });