Break class expression returned by arrow call (#1464)
This commit is contained in:
1 parent
7d1e24ea7d
commit
bfe3161762
4 files changed
+30
-5
No files matched your search
@@ -376,7 +376,6 @@ function genericPrintNoParens(path, options, print, args) {
|
||||
n.body.type === "BlockStatement" ||
|
||||
n.body.type === "TaggedTemplateExpression" ||
|
||||
n.body.type === "TemplateElement" ||
|
||||
n.body.type === "ClassExpression" ||
|
||||
n.body.type === "ArrowFunctionExpression"
|
||||
) {
|
||||
return group(collapsed);
|
||||
|
||||
@@ -38,6 +38,11 @@ func(
|
||||
veryLooooooooooooooooooooooooongName =>
|
||||
veryLoooooooooooooooongName.something()
|
||||
);
|
||||
|
||||
const composition = (ViewComponent, ContainerComponent) =>
|
||||
class extends React.Component {
|
||||
static propTypes = {};
|
||||
};
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
const testResults = results.testResults.map(testResult =>
|
||||
formatResult(testResult, formatter, reporter)
|
||||
@@ -83,6 +88,11 @@ func(
|
||||
veryLoooooooooooooooongName.something()
|
||||
);
|
||||
|
||||
const composition = (ViewComponent, ContainerComponent) =>
|
||||
class extends React.Component {
|
||||
static propTypes = {};
|
||||
};
|
||||
|
||||
`;
|
||||
|
||||
exports[`arrow_call.js 2`] = `
|
||||
@@ -123,6 +133,11 @@ func(
|
||||
veryLooooooooooooooooooooooooongName =>
|
||||
veryLoooooooooooooooongName.something()
|
||||
);
|
||||
|
||||
const composition = (ViewComponent, ContainerComponent) =>
|
||||
class extends React.Component {
|
||||
static propTypes = {};
|
||||
};
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
const testResults = results.testResults.map(testResult =>
|
||||
formatResult(testResult, formatter, reporter),
|
||||
@@ -168,4 +183,9 @@ func(
|
||||
veryLoooooooooooooooongName.something(),
|
||||
);
|
||||
|
||||
const composition = (ViewComponent, ContainerComponent) =>
|
||||
class extends React.Component {
|
||||
static propTypes = {};
|
||||
};
|
||||
|
||||
`;
|
||||
@@ -35,3 +35,8 @@ func(
|
||||
veryLooooooooooooooooooooooooongName =>
|
||||
veryLoooooooooooooooongName.something()
|
||||
);
|
||||
|
||||
const composition = (ViewComponent, ContainerComponent) =>
|
||||
class extends React.Component {
|
||||
static propTypes = {};
|
||||
};
|
||||
@@ -229,11 +229,12 @@ function render() {
|
||||
|
||||
jest.mock(
|
||||
"../SearchSource",
|
||||
() => class {
|
||||
findMatchingTests(pattern) {
|
||||
return { paths: [] };
|
||||
() =>
|
||||
class {
|
||||
findMatchingTests(pattern) {
|
||||
return { paths: [] };
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
`;
|
||||
|
||||
Reference in new issue
Block a user