File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -86,12 +86,23 @@ describe('Progress', () => {
86
86
expect ( progressAnimated . firstChild ) . toHaveClass ( 'progress-bar-animated' ) ;
87
87
} ) ;
88
88
89
- test ( 'sets className and style on the progress container' , ( ) => {
89
+ test ( 'sets className and style on the progress container and the bar ' , ( ) => {
90
90
const {
91
91
container : { firstChild : progress }
92
- } = render ( < Progress style = { { height : '40px' } } className = "blorp" /> ) ;
92
+ } = render (
93
+ < Progress
94
+ style = { { height : '40px' } }
95
+ className = "outer"
96
+ bar_style = { { color : 'chartreuse' } }
97
+ barClassName = "inner"
98
+ />
99
+ ) ;
93
100
94
- expect ( progress ) . toHaveClass ( 'blorp ' ) ;
101
+ expect ( progress ) . toHaveClass ( 'outer ' ) ;
95
102
expect ( progress ) . toHaveStyle ( 'height:40px' ) ;
103
+
104
+ expect ( progress . firstChild ) . toHaveClass ( 'progress-bar' ) ;
105
+ expect ( progress . firstChild ) . toHaveClass ( 'inner' ) ;
106
+ expect ( progress . firstChild ) . toHaveStyle ( 'color:chartreuse' ) ;
96
107
} ) ;
97
108
} ) ;
You can’t perform that action at this time.
0 commit comments