Skip to content

Commit 4b0fab7

Browse files
committed
Add test to catch future regressions
1 parent cd2ddc8 commit 4b0fab7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/components/__tests__/Progress.test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,13 @@ describe('Progress', () => {
8585

8686
expect(progressAnimated.firstChild).toHaveClass('progress-bar-animated');
8787
});
88+
89+
test('sets className and style on the progress container', () => {
90+
const {
91+
container: {firstChild: progress}
92+
} = render(<Progress style={{height: '40px'}} className="blorp" />);
93+
94+
expect(progress).toHaveClass('blorp');
95+
expect(progress).toHaveStyle('height:40px');
96+
});
8897
});

0 commit comments

Comments
 (0)