diff --git a/test/components/CircularProgressbar.spec.js b/test/components/CircularProgressbar.spec.js index e4fa0ac..bfb80ce 100644 --- a/test/components/CircularProgressbar.spec.js +++ b/test/components/CircularProgressbar.spec.js @@ -99,4 +99,19 @@ describe('CircularProgressbar props', () => { const expectedArcto = `a ${expectedRadius},${expectedRadius}`; assert(wrapper.find('.CircularProgressbar-path').prop('d').includes(expectedArcto)); }); + + it('counterClockwise', () => { + const clockwise = shallow( + + ); + const counterClockwise = shallow( + + ); + + assert.equal( + `-${clockwise.find('.CircularProgressbar-path').prop('style').strokeDashoffset}`, + counterClockwise.find('.CircularProgressbar-path').prop('style').strokeDashoffset, + 'counterclockwise should have the negative dashoffset of clockwise', + ); + }); });