Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
rand-char-loader/spec/rand-char-react-component.spec.jsx
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
21 lines (16 sloc)
601 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react/addons'; | |
import RandCharReactComponent from '../lib/rand-char-react-component.jsx'; | |
describe('RandCharReactComponent', function() { | |
var component; | |
beforeEach(function() { | |
component = React.addons.TestUtils.renderIntoDocument( | |
<RandCharReactComponent/> | |
); | |
}); | |
it('should render', function() { | |
expect(React.findDOMNode(component).className).toEqual('rand-char-react-component'); | |
}); | |
it('should generate a random character', function() { | |
console.log(RandCharReactComponent.randomeCharacter()); | |
}); | |
}); |