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

Commit

Permalink
Merge pull request #493 from danez/regression-test
Browse files Browse the repository at this point in the history
Test for babylon regression
  • Loading branch information
hzoo committed Jun 18, 2017
2 parents 37f9242 + 5736be6 commit f757e22
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -15,7 +15,7 @@
"babel-code-frame": "7.0.0-alpha.12",
"babel-traverse": "7.0.0-alpha.12",
"babel-types": "7.0.0-alpha.12",
"babylon": "7.0.0-beta.13"
"babylon": "7.0.0-beta.14"
},
"scripts": {
"test": "npm run lint && npm run test-only",
Expand Down
15 changes: 15 additions & 0 deletions test/non-regression.js
Expand Up @@ -1780,4 +1780,19 @@ describe("verify", () => {
);
});
});

it("flow types on class method should be visited correctly", () => {
verifyAndAssertMessages(
unpad(`
import type NodeType from 'foo';
class NodeUtils {
finishNodeAt<T : NodeType>(node: T): T { return node; }
}
new NodeUtils();
`),
{ "no-unused-vars": 1 },
[]
);
});
});
6 changes: 3 additions & 3 deletions yarn.lock
Expand Up @@ -212,9 +212,9 @@ babylon@7.0.0-beta.12:
version "7.0.0-beta.12"
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.12.tgz#f7b9c8a89ff7d6afb57b906d947a4237f9bf53f9"

babylon@7.0.0-beta.13:
version "7.0.0-beta.13"
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.13.tgz#12425c1bfd9498be419021ed36b43fe4f0289c0a"
babylon@7.0.0-beta.14:
version "7.0.0-beta.14"
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.14.tgz#72aa3c493c984c2edc54d4bc077b74066ed4511d"

babylon@7.0.0-beta.8:
version "7.0.0-beta.8"
Expand Down

0 comments on commit f757e22

Please sign in to comment.