Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Commit

Permalink
test(Progress): test for flooring data-percent (Semantic-Org#1672)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickgaskill committed May 12, 2017
1 parent e7375e0 commit c864861
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/specs/modules/Progress/Progress-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@ describe('Progress', () => {
shallow(<Progress percent={10} />)
.should.have.prop('data-percent', 10)
})

it('floors the value of percent prop', () => {
shallow(<Progress percent={8.28} />)
.should.have.prop('data-percent', 8)
})

it('floors the results value and total props', () => {
shallow(<Progress value={828} total={10000} />)
.should.have.prop('data-percent', 8)
})
})

describe('indicating', () => {
Expand Down

0 comments on commit c864861

Please sign in to comment.