Skip to content

Commit

Permalink
chore(package): update chai-enzyme to version 0.7.0 (#1692)
Browse files Browse the repository at this point in the history
* chore(package): update chai-enzyme to version 0.7.0

https://greenkeeper.io/

* tests(Progress): use data in tests
  • Loading branch information
greenkeeperio-bot authored and levithomason committed May 22, 2017
1 parent 78832d8 commit bbe5e32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"babel-register": "^6.24.1",
"babel-standalone": "^6.24.0",
"chai": "^3.5.0",
"chai-enzyme": "^0.6.1",
"chai-enzyme": "^0.7.0",
"connect-history-api-fallback": "^1.2.0",
"copy-to-clipboard": "^3.0.6",
"cross-env": "^4.0.0",
Expand Down
8 changes: 4 additions & 4 deletions test/specs/modules/Progress/Progress-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,22 +91,22 @@ describe('Progress', () => {
describe('data-percent', () => {
it('adds prop by default', () => {
shallow(<Progress />)
.should.have.prop('data-percent', undefined)
.should.have.data('percent')
})

it('passes value of percent prop', () => {
shallow(<Progress percent={10} />)
.should.have.prop('data-percent', 10)
.should.have.data('percent', 10)
})

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

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

Expand Down

0 comments on commit bbe5e32

Please sign in to comment.