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

View File

@ -1472,6 +1472,16 @@ describe("verify", function () {
);
});
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 },
[]
);
});
// it("regex with es6 unicodeCodePointEscapes", function () {
// verifyAndAssertMessages(
// "string.replace(/[\u{0000A0}-\u{10FFFF}<>\&]/gmiu, (char) => `&#x${char.codePointAt(0).toString(16)};`);",