@@ -33,11 +33,11 @@ describe('The component HOC', () => {
3333 ) ;
3434 const componentProps = wrapper . find ( TestComponent ) . props ( ) ;
3535
36- describe ( '`name`' , ( ) => {
37- it ( 'is required' , ( ) => { } ) ;
38- it ( 'should be a string' , ( ) => { } ) ;
39- it ( 'is passed through to the composed component' , ( ) => { } ) ;
40- } ) ;
36+ // describe('`name`', () => {
37+ // it('is required', () => {});
38+ // it('should be a string', () => {});
39+ // it('is passed through to the composed component', () => {});
40+ // });
4141
4242 describe ( '`disabled`' , ( ) => {
4343 const disabledProp = componentProps . disabled ;
@@ -49,96 +49,96 @@ describe('The component HOC', () => {
4949 } ) ;
5050 } ) ;
5151
52- describe ( '`help`' , ( ) => {
53- it ( 'should be a string' , ( ) => { } ) ;
54- it ( 'is passed through to the composed component' , ( ) => { } ) ;
55- } ) ;
56-
57- describe ( '`label`' , ( ) => {
58- it ( 'should be a string' , ( ) => { } ) ;
59- it ( 'is passed through to the composed component' , ( ) => { } ) ;
60- } ) ;
61-
62- describe ( '`id`' , ( ) => {
63- it ( 'should be a string' , ( ) => { } ) ;
64- it ( 'is generated for the composed component when not supplied' , ( ) => {
65- //expect(typeof componentProps.id).toBe('string');
66- //expect(componentProps.id.startsWith('frc-')).toBe(true);
67- } ) ;
68- it ( 'is passed through to the composed component' , ( ) => { } ) ;
69- } ) ;
70-
71- describe ( '`layout`' , ( ) => {
72- it ( 'defaults to `horizontal` if not supplied' , ( ) => { } ) ;
73- it ( 'is merged with a master value set in a parent context' , ( ) => { } ) ;
74- it ( 'is passed through to the composed component' , ( ) => { } ) ;
75- } ) ;
76-
77- describe ( '`validatePristine`' , ( ) => {
78- it ( 'determines whether to show errors on pristine (untouched) values' , ( ) => { } ) ;
79- it ( 'is merged with a master value set in a parent context' , ( ) => { } ) ;
80- it ( 'is not passed through to the composed component' , ( ) => { } ) ;
81- } ) ;
82-
83- describe ( '`validateBeforeSubmit`' , ( ) => {
84- it ( 'determines whether to hide errors until an attempt to submit the form is made' , ( ) => { } ) ;
85- it ( 'is merged with a master value set in a parent context' , ( ) => { } ) ;
86- it ( 'is not passed through to the composed component' , ( ) => { } ) ;
87- } ) ;
88-
89- describe ( 'other props' , ( ) => {
90- it ( 'are passed through to the composed component' , ( ) => { } ) ;
91- } ) ;
52+ // describe('`help`', () => {
53+ // it('should be a string', () => {});
54+ // it('is passed through to the composed component', () => {});
55+ // });
56+
57+ // describe('`label`', () => {
58+ // it('should be a string', () => {});
59+ // it('is passed through to the composed component', () => {});
60+ // });
61+
62+ // describe('`id`', () => {
63+ // it('should be a string', () => {});
64+ // it('is generated for the composed component when not supplied', () => {
65+ // //expect(typeof componentProps.id).toBe('string');
66+ // //expect(componentProps.id.startsWith('frc-')).toBe(true);
67+ // });
68+ // it('is passed through to the composed component', () => {});
69+ // });
70+
71+ // describe('`layout`', () => {
72+ // it('defaults to `horizontal` if not supplied', () => {});
73+ // it('is merged with a master value set in a parent context', () => {});
74+ // it('is passed through to the composed component', () => {});
75+ // });
76+
77+ // describe('`validatePristine`', () => {
78+ // it('determines whether to show errors on pristine (untouched) values', () => {});
79+ // it('is merged with a master value set in a parent context', () => {});
80+ // it('is not passed through to the composed component', () => {});
81+ // });
82+
83+ // describe('`validateBeforeSubmit`', () => {
84+ // it('determines whether to hide errors until an attempt to submit the form is made', () => {});
85+ // it('is merged with a master value set in a parent context', () => {});
86+ // it('is not passed through to the composed component', () => {});
87+ // });
88+
89+ // describe('other props', () => {
90+ // it('are passed through to the composed component', () => {});
91+ // });
9292 } ) ;
9393
94- describe ( 'props set on the composed component' , ( ) => {
95- // "Describle (v): To create a meaningless description."
96-
97- describe ( '`errorMessages`' , ( ) => {
98- it ( 'is an array' , ( ) => { } ) ;
99- it ( 'is the result of formsy `getErrorMessages`' , ( ) => { } ) ;
100- // errorMessages: this.props.getErrorMessages(),
101- } ) ;
102-
103- describe ( '`id`' , ( ) => {
104- it ( 'is a string' , ( ) => { } ) ;
105- // id: this.getId(),
106- } ) ;
107-
108- describe ( '`layout`' , ( ) => {
109- it ( 'is a string' , ( ) => { } ) ;
110- } ) ;
111-
112- describe ( '`required`' , ( ) => {
113- it ( 'is a boolean' , ( ) => { } ) ;
114- it ( 'is the result of formsy `isRequired`' , ( ) => { } ) ;
115- // required: this.props.isRequired(),
116- } ) ;
117-
118- describe ( '`showErrors`' , ( ) => {
119- it ( 'is a boolean' , ( ) => { } ) ;
120- // showErrors: this.shouldShowErrors(),
121- } ) ;
122-
123- describe ( 'css class name properties' , ( ) => {
124- // elementWrapperClassName
125- // labelClassName
126- // rowClassName
127- } ) ;
128-
129- describe ( '`value`' , ( ) => {
130- it ( '`value` is the result of formsy getValue()' , ( ) => { } ) ;
131- } ) ;
132-
133- describe ( '`disabled`' , ( ) => {
134- it ( 'is a boolean' , ( ) => { } ) ;
135- // this.props.isFormDisabled() || this.props.disabled,
136- it ( 'is overridden by formsy `isFormDisabled` (if true)' , ( ) => { } ) ;
137- } ) ;
138-
139- describe ( '`onSetValue`' , ( ) => {
140- it ( 'is a function' , ( ) => { } ) ;
141- it ( 'is just formsy setValue, with name changed to fit with project naming convention' , ( ) => { } ) ;
142- } ) ;
143- } ) ;
94+ // describe('props set on the composed component', () => {
95+ // // "Describle (v): To create a meaningless description."
96+
97+ // describe('`errorMessages`', () => {
98+ // it('is an array', () => {});
99+ // it('is the result of formsy `getErrorMessages`', () => {});
100+ // // errorMessages: this.props.getErrorMessages(),
101+ // });
102+
103+ // describe('`id`', () => {
104+ // it('is a string', () => {});
105+ // // id: this.getId(),
106+ // });
107+
108+ // describe('`layout`', () => {
109+ // it('is a string', () => {});
110+ // });
111+
112+ // describe('`required`', () => {
113+ // it('is a boolean', () => {});
114+ // it('is the result of formsy `isRequired`', () => {});
115+ // // required: this.props.isRequired(),
116+ // });
117+
118+ // describe('`showErrors`', () => {
119+ // it('is a boolean', () => {});
120+ // // showErrors: this.shouldShowErrors(),
121+ // });
122+
123+ // describe('css class name properties', () => {
124+ // // elementWrapperClassName
125+ // // labelClassName
126+ // // rowClassName
127+ // });
128+
129+ // describe('`value`', () => {
130+ // it('`value` is the result of formsy getValue()', () => {});
131+ // });
132+
133+ // describe('`disabled`', () => {
134+ // it('is a boolean', () => {});
135+ // // this.props.isFormDisabled() || this.props.disabled,
136+ // it('is overridden by formsy `isFormDisabled` (if true)', () => {});
137+ // });
138+
139+ // describe('`onSetValue`', () => {
140+ // it('is a function', () => {});
141+ // it('is just formsy setValue, with name changed to fit with project naming convention', () => {});
142+ // });
143+ // });
144144} ) ;
0 commit comments