Skip to content

Commit

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

exports[`non-octal-eight-and-nine.js - {"trailingComma":"all"} format 1`] = `
====================================options=====================================
parsers: ["babel", "flow"]
printWidth: 80
trailingComma: "all"
| printWidth
=====================================input======================================
// https://github.com/babel/babel/pull/11852
"\\8","\\9";
() => {
"use strict";
"\\8", "\\9";
}
=====================================output=====================================
// https://github.com/babel/babel/pull/11852
"8", "9";
() => {
"use strict";
"8", "9";
};
================================================================================
`;

exports[`non-octal-eight-and-nine.js format 1`] = `
====================================options=====================================
parsers: ["babel", "flow"]
printWidth: 80
| printWidth
=====================================input======================================
// https://github.com/babel/babel/pull/11852
"\\8","\\9";
() => {
"use strict";
"\\8", "\\9";
}
=====================================output=====================================
// https://github.com/babel/babel/pull/11852
"8", "9";
() => {
"use strict";
"8", "9";
};
================================================================================
`;

exports[`strings.js - {"trailingComma":"all"} format 1`] = `
====================================options=====================================
parsers: ["babel", "flow"]
Expand Down
7 changes: 7 additions & 0 deletions tests/js/strings/non-octal-eight-and-nine.js
@@ -0,0 +1,7 @@
// https://github.com/babel/babel/pull/11852

"\8","\9";
() => {
"use strict";
"\8", "\9";
}

0 comments on commit 0452c63

Please sign in to comment.