redux-formo
Version:
An alternate forms framework for Redux+React.
23 lines (15 loc) • 753 B
JavaScript
;
var _constants = require('../constants');
var _change = require('../actions/change');
var _change2 = _interopRequireDefault(_change);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
describe('change()', function () {
it('should return a change action', function () {
var action = (0, _change2.default)(null, 'personal-details', 'firstName', 'John');
expect(action).to.have.property('type', _constants.CHANGE);
expect(action).to.have.property('meta').property('form', 'personal-details');
expect(action).to.have.property('meta').property('field', 'firstName');
expect(action).to.have.property('payload', 'John');
});
});
//# sourceMappingURL=change.test.js.map