Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

Commit 4b74351

Browse files
committed
Add regression test for #223 (#305)
1 parent 3423d0c commit 4b74351

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/non-regression.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,17 @@ describe("verify", function () {
14681468
"}"
14691469
].join("\n"),
14701470
{ "no-undef": 1 },
1471-
[ "2:4 'test' is not defined. no-undef"]
1471+
[ "2:4 'test' is not defined. no-undef" ]
1472+
);
1473+
});
1474+
1475+
it("Flow definition does not trigger warnings #223", function () {
1476+
verifyAndAssertMessages([
1477+
"import { Map as $Map } from 'immutable';",
1478+
"function myFunction($state: $Map, { a, b, c } : { a: ?Object, b: ?Object, c: $Map }) {}"
1479+
].join("\n"),
1480+
{ "no-dupe-args": 1, "no-redeclare": 1, "no-shadow": 1 },
1481+
[]
14721482
);
14731483
});
14741484

0 commit comments

Comments
 (0)