This commit is contained in:
Daniel Tschinder 2016-04-29 23:23:13 +02:00
parent 81ce743986
commit 97af2b0b62

View File

@ -1468,7 +1468,17 @@ describe("verify", function () {
"}" "}"
].join("\n"), ].join("\n"),
{ "no-undef": 1 }, { "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 },
[]
); );
}); });