Merge pull request babel/babel-eslint#128 from hzoo/i-124
add tests - for babel/babel-eslint#124
This commit is contained in:
parent
80888a1b23
commit
d4318aa0d8
@ -265,6 +265,18 @@ describe("acorn-to-esprima", function () {
|
||||
].join("\n"));
|
||||
});
|
||||
|
||||
it("block comments #124", function () {
|
||||
parseAndAssertSame([
|
||||
"React.createClass({",
|
||||
"render() {",
|
||||
"// return (",
|
||||
"// <div />",
|
||||
"// ); // <-- this is the line that is reported",
|
||||
"}",
|
||||
"});"
|
||||
].join("\n"));
|
||||
});
|
||||
|
||||
it("null", function () {
|
||||
parseAndAssertSame("null");
|
||||
});
|
||||
|
||||
@ -1238,4 +1238,38 @@ describe("verify", function () {
|
||||
[]
|
||||
);
|
||||
});
|
||||
|
||||
// it("line comment space-in-parens #124", function () {
|
||||
// verifyAndAssertMessages(
|
||||
// [
|
||||
// "React.createClass({",
|
||||
// "render() {",
|
||||
// "// return (",
|
||||
// "// <div />",
|
||||
// "// ); // <-- this is the line that is reported",
|
||||
// "}",
|
||||
// "});"
|
||||
// ].join("\n"),
|
||||
// { "space-in-parens": 1 },
|
||||
// [ ]
|
||||
// )
|
||||
// });
|
||||
|
||||
it("block comment space-in-parens #124", function () {
|
||||
verifyAndAssertMessages(
|
||||
[
|
||||
"React.createClass({",
|
||||
"render() {",
|
||||
"/*",
|
||||
"return (",
|
||||
" <div />",
|
||||
"); // <-- this is the line that is reported",
|
||||
"*/",
|
||||
"}",
|
||||
"});"
|
||||
].join("\n"),
|
||||
{ "space-in-parens": 1 },
|
||||
[ ]
|
||||
)
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user