diff --git a/test/non-regression.js b/test/non-regression.js index c1d03798..e1f18afa 100644 --- a/test/non-regression.js +++ b/test/non-regression.js @@ -1340,13 +1340,12 @@ describe("verify", function () { ); }); - it("", function () { - + it("fixes issues with flow types and ObjectPattern", function () { verifyAndAssertMessages([ "import type Foo from 'bar';", - "class Foobar {", - " foo({ bar }: Foo) {}", - " bar({ foo }: Foo) {}", + "export default class Foobar {", + " foo({ bar }: Foo) { bar; }", + " bar({ foo }: Foo) { foo; }", "}" ].join("\n"), { "no-unused-vars": 1 },