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 {expect} from 'chai'; | |
import reducer from '../index' | |
describe('image_uploader reducer', () => { | |
describe('init', () => { | |
it('should initialize state', () => { | |
const action = {} | |
const result = { |
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
propTypes: { | |
// You can declare that a prop is a specific JS primitive. By default, these | |
// are all optional. | |
optionalArray: React.PropTypes.array, | |
optionalBool: React.PropTypes.bool, | |
optionalFunc: React.PropTypes.func, | |
optionalNumber: React.PropTypes.number, | |
optionalObject: React.PropTypes.object, | |
optionalString: React.PropTypes.string, |
OlderNewer