Skip to content

Commit

Permalink
Update prettier to v1.8.2 (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
glasserc authored Nov 9, 2017
1 parent a8b77b9 commit fdc5566
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"json-loader": "^0.5.7",
"lint-staged": "^3.3.1",
"mocha": "^2.5.3",
"prettier": "^1.7.2",
"prettier": "^1.8.2",
"react": "^15.5.0",
"react-addons-test-utils": "^15.3.2",
"react-codemirror2": "^2.0.2",
Expand Down
9 changes: 6 additions & 3 deletions playground/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,13 +460,16 @@ class App extends Component {
formData={formData}
onChange={this.onFormDataChange}
onSubmit={({ formData }) =>
console.log("submitted formData", formData)}
console.log("submitted formData", formData)
}
fields={{ geo: GeoPosition }}
validate={validate}
onBlur={(id, value) =>
console.log(`Touched ${id} with value ${value}`)}
console.log(`Touched ${id} with value ${value}`)
}
onFocus={(id, value) =>
console.log(`Focused ${id} with value ${value}`)}
console.log(`Focused ${id} with value ${value}`)
}
transformErrors={transformErrors}
onError={log("errors")}>
<div className="row">
Expand Down
30 changes: 14 additions & 16 deletions test/performance_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,13 @@ describe("Rendering performance optimizations", () => {
formData: { const: "0", var: "0" },
});

const fields = scryRenderedComponentsWithType(
comp,
SchemaField
).reduce((fields, fieldComp) => {
sandbox.stub(fieldComp, "render").returns(<div />);
fields[fieldComp.props.idSchema.$id] = fieldComp;
return fields;
});
const fields = scryRenderedComponentsWithType(comp, SchemaField).reduce(
(fields, fieldComp) => {
sandbox.stub(fieldComp, "render").returns(<div />);
fields[fieldComp.props.idSchema.$id] = fieldComp;
return fields;
}
);

setProps(comp, { schema, formData: { const: "0", var: "1" } });

Expand All @@ -86,14 +85,13 @@ describe("Rendering performance optimizations", () => {
formData: ["const", "var0"],
});

const fields = scryRenderedComponentsWithType(
comp,
SchemaField
).reduce((fields, fieldComp) => {
sandbox.stub(fieldComp, "render").returns(<div />);
fields[fieldComp.props.idSchema.$id] = fieldComp;
return fields;
});
const fields = scryRenderedComponentsWithType(comp, SchemaField).reduce(
(fields, fieldComp) => {
sandbox.stub(fieldComp, "render").returns(<div />);
fields[fieldComp.props.idSchema.$id] = fieldComp;
return fields;
}
);

setProps(comp, { schema, formData: ["const", "var1"] });

Expand Down

0 comments on commit fdc5566

Please sign in to comment.