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

Commit

Permalink
Add regression test for #223 (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Apr 29, 2016
1 parent 3423d0c commit 4b74351
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/non-regression.js
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,17 @@ describe("verify", function () {
"}"
].join("\n"),
{ "no-undef": 1 },
[ "2:4 'test' is not defined. no-undef"]
[ "2:4 'test' is not defined. no-undef" ]
);
});

it("Flow definition does not trigger warnings #223", function () {
verifyAndAssertMessages([
"import { Map as $Map } from 'immutable';",
"function myFunction($state: $Map, { a, b, c } : { a: ?Object, b: ?Object, c: $Map }) {}"
].join("\n"),
{ "no-dupe-args": 1, "no-redeclare": 1, "no-shadow": 1 },
[]
);
});

Expand Down

0 comments on commit 4b74351

Please sign in to comment.