You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
596 B
26 lines
596 B
import formReducer, {
|
|
SET_FORM_TYPE
|
|
} from '../../app/reducers/form'
|
|
|
|
// describe('reducers', () => {
|
|
// describe('formReducer', () => {
|
|
|
|
|
|
// }
|
|
// }
|
|
|
|
describe('reducers', () => {
|
|
describe('formReducer', () => {
|
|
it('should handle initial state', () => {
|
|
expect(formReducer(undefined, {})).toMatchSnapshot()
|
|
})
|
|
|
|
it('should have SET_FORM_TYPE', () => {
|
|
expect(SET_FORM_TYPE).toEqual('SET_FORM_TYPE')
|
|
})
|
|
|
|
it('should correctly setFormType', () => {
|
|
expect(formReducer(undefined, { type: SET_FORM_TYPE, formType: 'FOO' })).toMatchSnapshot()
|
|
})
|
|
})
|
|
})
|
|
|