diff --git a/src/Progress.js b/src/Progress.js index 1cf31b2d9..098393232 100644 --- a/src/Progress.js +++ b/src/Progress.js @@ -22,12 +22,14 @@ const propTypes = { className: PropTypes.string, barClassName: PropTypes.string, cssModule: PropTypes.object, + style: PropTypes.object, }; const defaultProps = { tag: 'div', value: 0, max: 100, + style: {}, }; const Progress = (props) => { @@ -44,6 +46,7 @@ const Progress = (props) => { bar, multi, tag: Tag, + style, ...attributes } = props; @@ -65,7 +68,10 @@ const Progress = (props) => { const ProgressBar = multi ? children : (
{ expect(wrapper.prop('max')).toBe(100); }); + it('should render with "style" empty object by default', () => { + const wrapper = mount(); + + expect(wrapper.prop('style')).toEqual({}); + }); + it('should render with the given "value" when passed as string prop', () => { const wrapper = mount();