Bump Babylon and enable additional tests (#1668)

This commit is contained in:
Brian Ng authored and Christopher Chedeau committed 2017-05-22 15:31:53 -07:00
1 parent c2a3d23133
commit d608b7ba28
11 files changed
+35 -11

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@
"dependencies": {
"ast-types": "0.9.8",
"babel-code-frame": "6.22.0",
"babylon": "7.0.0-beta.8",
"babylon": "7.0.0-beta.10",
"chalk": "1.1.3",
"esutils": "2.0.2",
"flow-parser": "0.45.0",
+1 -1
View File
@@ -1 +1 @@
run_spec(__dirname);
run_spec(__dirname, null, ["babylon"]);
+4
View File
@@ -1 +1,5 @@
run_spec(__dirname);
// TODO: While the tests render the same, Flow is dropping the line breaks
// between each declaration while Babylon preserves them.
//run_spec(__dirname, null, ["babylon"]);
+1 -1
View File
@@ -1 +1 @@
run_spec(__dirname);
run_spec(__dirname, null, ["babylon"]);
@@ -1 +1 @@
run_spec(__dirname);
run_spec(__dirname, null, ["babylon"]);
@@ -1,5 +1 @@
run_spec(__dirname);
// TODO: These tests used to be run in babylon as well, but currently babylon
// fails to parse them.
// run_spec(__dirname, null, ["babylon"]);
run_spec(__dirname, null, ["babylon"]);
+1 -1
View File
@@ -1 +1 @@
run_spec(__dirname);
run_spec(__dirname, null, ["babylon"]);
@@ -54,6 +54,24 @@ var X = {
`;
exports[`generic.js 1`] = `
const identity = <T>(t: T): T => t;
const a = 1;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
const identity = <T>(t: T): T => t;
const a = 1;
`;
exports[`generic.js 2`] = `
const identity = <T>(t: T): T => t;
const a = 1;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
const identity = <T>(t: T): T => t;
const a = 1;
`;
exports[`nullable.js 1`] = `
function formatEntireFile(
fileVersion: FileVersion,
+2
View File
@@ -0,0 +1,2 @@
const identity = <T>(t: T): T => t;
const a = 1;
+1 -1
View File
@@ -1 +1 @@
run_spec(__dirname);
run_spec(__dirname, null, ["babylon"]);
+4
View File
@@ -304,6 +304,10 @@ babel-types@^6.18.0, babel-types@^6.24.1:
lodash "^4.2.0"
to-fast-properties "^1.0.1"
babylon@7.0.0-beta.10:
version "7.0.0-beta.10"
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.10.tgz#07a210ea6a4480c9581794403907a6c72abc607c"
babylon@7.0.0-beta.8:
version "7.0.0-beta.8"
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.8.tgz#2bdc5ae366041442c27e068cce6f0d7c06ea9949"