Skip to content

Commit

Permalink
Test babel 11854
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Aug 1, 2020
1 parent 0452c63 commit ea62a93
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/js/numeric-separators/__snapshots__/jsfmt.spec.js.snap
@@ -0,0 +1,21 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`number.js format 1`] = `
====================================options=====================================
parsers: ["babel", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
// https://github.com/babel/babel/pull/11854
a = 09e1_1;
a = 09.1_1;
=====================================output=====================================
// https://github.com/babel/babel/pull/11854
a = 09e1_1;
a = 09.1_1;
================================================================================
`;
1 change: 1 addition & 0 deletions tests/js/numeric-separators/jsfmt.spec.js
@@ -0,0 +1 @@
run_spec(__dirname, ["babel", "typescript"]);
4 changes: 4 additions & 0 deletions tests/js/numeric-separators/number.js
@@ -0,0 +1,4 @@
// https://github.com/babel/babel/pull/11854

a = 09e1_1;
a = 09.1_1;
9 changes: 9 additions & 0 deletions tests/misc/errors/flow/__snapshots__/jsfmt.spec.js.snap
Expand Up @@ -27,3 +27,12 @@ exports[`module-attributes-static.js error test 1`] = `
| ^^^^
2 | "
`;
exports[`number.js error test 1`] = `
"Unexpected token ILLEGAL (3:5)
1 | // https://github.com/babel/babel/pull/11854
2 |
> 3 | a = 09e1_1;
| ^^^^
4 | "
`;
3 changes: 3 additions & 0 deletions tests/misc/errors/flow/number.js
@@ -0,0 +1,3 @@
// https://github.com/babel/babel/pull/11854

a = 09e1_1;

0 comments on commit ea62a93

Please sign in to comment.