@ -97,7 +97,8 @@ module.exports = {
it('Update input on value change', () => {
view.model.set('value', propValue);
expect(view.$input.val()).toEqual(propValue);
// Fetch always values from properties
expect(view.$input.val()).toEqual('0% val2');
});
describe('With target setted', () => {
@ -121,7 +121,7 @@ module.exports = {
view.model.set('value', intValue);
var compStyle = view.selectedComponent.get('style');
var assertStyle = {};
assertStyle[propName] = parseInt(intValue);
assertStyle[propName] = intValue;
expect(compStyle).toEqual(assertStyle);
@ -246,7 +246,7 @@ module.exports = {
it('Build value from properties', () => {
view.model.get('properties').at(0).set('value', propValue);
view.model.get('properties').at(2).set('value', prop3Val);
expect(view.build()).toEqual(finalResult);
expect(view.model.getFullValue()).toEqual(finalResult);