Skip to content

Commit

Permalink
Release 0.15.2
Browse files Browse the repository at this point in the history
  • Loading branch information
seeden committed Apr 30, 2016
1 parent 26925f6 commit 1743cf7
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 15 deletions.
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-form-controlled",
"version": "0.15.1",
"version": "0.15.2",
"description": "React controlled form components. The main idea is to make forms as simple as possible.",
"author": {
"name": "Zlatko Fedor",
Expand Down Expand Up @@ -36,32 +36,33 @@
},
"dependencies": {
"diacritics": "^1.2.3",
"ajv": "~4.0.1",
"ajv": "~4.0.4",
"lodash": "^4.11.1"
},
"devDependencies": {
"babel-cli": "^6.7.5",
"babel-core": "^6.7.6",
"babel-eslint": "^6.0.3",
"babel-cli": "^6.7.7",
"babel-core": "^6.7.7",
"babel-eslint": "^6.0.4",
"babel-plugin-transform-decorators": "^6.6.5",
"babel-plugin-transform-class-properties": "^6.6.0",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"babel-preset-stage-0": "^6.5.0",
"babel-preset-stage-1": "^6.5.0",
"eslint": "^2.8.0",
"eslint-config-airbnb": "^7.0.0",
"eslint": "^2.9.0",
"eslint-config-airbnb": "^8.0.0",
"eslint-loader": "^1.3.0",
"eslint-plugin-react": "^4.3.0",
"eslint-plugin-react": "^5.0.1",
"eslint-plugin-import": "^1.6.0",
"gulp": "^3.9.1",
"gulp-babel": "^6.1.2",
"gulp-coveralls": "^0.1.4",
"gulp-jsx-coverage": "^0.3.8",
"gulp-util": "^3.0.7",
"react": "^15.0.1",
"react-addons-test-utils": "^15.0.1",
"eslint-plugin-jsx-a11y": "^0.6.2",
"react-dom": "^15.0.1",
"react": "^15.0.2",
"react-addons-test-utils": "^15.0.2",
"eslint-plugin-jsx-a11y": "^1.0.4",
"react-dom": "^15.0.2",
"should": "^8.3.1",
"mocha": "^2.4.5",
"jsdom": "^3.1.2 || ^6.5.1"
Expand Down
1 change: 0 additions & 1 deletion src/Integrate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export default class Integrate extends Element {

static defaultProps = {
onChange: true,
value: 'value',
};

render() {
Expand Down
21 changes: 19 additions & 2 deletions tests/input.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,23 @@ describe('Tbody', () => {
});

describe('Integrate', () => {
it('should be able to create simple object', () => {
const value = {
place: 'Kosice',
};

const node = renderJSX(
<Form value={value}>
<Integrate name="place" value="value" onChange="onChange">
<input placeholder="1122"/>
</Integrate>
</Form>
);

const ele = findDOMNode(node).querySelector('input');
ele.value.should.equal('Kosice');
});

it('should be able to create object', () => {
const value = {
rows: [123, 456],
Expand All @@ -742,8 +759,8 @@ describe('Integrate', () => {
<tbody name="rows">
<tr>
<td>
<Integrate name=".">
<input />
<Integrate name="." value="value" onChange="onChange">
<input placeholder="1122"/>
</Integrate>
</td>
</tr>
Expand Down

0 comments on commit 1743cf7

Please sign in to comment.