diff options
author | Francesco <firefelix@gmail.com> | 2015-06-10 14:12:03 +0200 |
---|---|---|
committer | Francesco <firefelix@gmail.com> | 2015-06-10 14:21:06 +0200 |
commit | 393e800c8be43cef75303ac48ce8b43d535ca9f1 (patch) | |
tree | 677fc9b19acd18c322458a1652fc328c982f8c51 /lib/__tests__/Rating-test.js | |
parent | 4ce236995fc6bce4956e8316ddb824444fcada64 (diff) | |
download | react-autosize-textarea-393e800c8be43cef75303ac48ce8b43d535ca9f1.zip react-autosize-textarea-393e800c8be43cef75303ac48ce8b43d535ca9f1.tar.gz react-autosize-textarea-393e800c8be43cef75303ac48ce8b43d535ca9f1.tar.bz2 |
refactored repo structure using web-lib-seed. Fix #1
Diffstat (limited to 'lib/__tests__/Rating-test.js')
-rw-r--r-- | lib/__tests__/Rating-test.js | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/__tests__/Rating-test.js b/lib/__tests__/Rating-test.js deleted file mode 100644 index 75734cc..0000000 --- a/lib/__tests__/Rating-test.js +++ /dev/null @@ -1,30 +0,0 @@ -var React = require('react/addons'); -var TestUtils = React.addons.TestUtils; -var expect = require('expect'); -var {Rating, RatingIcon} = require('../'); - -describe('Rating', function() { - - it('should render 5 RatingIcons as default', function() { - var ratingWrapper = TestUtils.renderIntoDocument( - <div> - <Rating onRate={() => {}} /> - </div> - ); - - var ratingIcons = TestUtils.scryRenderedComponentsWithType(ratingWrapper, RatingIcon); - expect(ratingIcons.length).toBe(5, 'Rating is not rendering 5 icons as default'); - }); - - it('should render 3 RatingIcons', function() { - var ratingWrapper = TestUtils.renderIntoDocument( - <div> - <Rating onRate={() => {}} maxRating={3} /> - </div> - ); - - var ratingIcons = TestUtils.scryRenderedComponentsWithType(ratingWrapper, RatingIcon); - expect(ratingIcons.length).toBe(3, 'Rating is not renderin 3 icons'); - }); - -}); |