Skip to content

Commit

Permalink
Test babel 11753
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Aug 1, 2020
1 parent cea3484 commit 24730d5
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
56 changes: 56 additions & 0 deletions tests/typescript/tuple/__snapshots__/jsfmt.spec.js.snap
Expand Up @@ -296,3 +296,59 @@ export type SCMRawResource = [
================================================================================
`;

exports[`tuple-rest-not-last.ts - {"trailingComma":"all"} format 1`] = `
====================================options=====================================
parsers: ["typescript"]
printWidth: 80
trailingComma: "all"
| printWidth
=====================================input======================================
// https://github.com/babel/babel/pull/11753
let x: [...[number, string], string]
=====================================output=====================================
// https://github.com/babel/babel/pull/11753
let x: [...[number, string], string];
================================================================================
`;

exports[`tuple-rest-not-last.ts - {"trailingComma":"none"} format 1`] = `
====================================options=====================================
parsers: ["typescript"]
printWidth: 80
trailingComma: "none"
| printWidth
=====================================input======================================
// https://github.com/babel/babel/pull/11753
let x: [...[number, string], string]
=====================================output=====================================
// https://github.com/babel/babel/pull/11753
let x: [...[number, string], string];
================================================================================
`;

exports[`tuple-rest-not-last.ts format 1`] = `
====================================options=====================================
parsers: ["typescript"]
printWidth: 80
| printWidth
=====================================input======================================
// https://github.com/babel/babel/pull/11753
let x: [...[number, string], string]
=====================================output=====================================
// https://github.com/babel/babel/pull/11753
let x: [...[number, string], string];
================================================================================
`;
3 changes: 3 additions & 0 deletions tests/typescript/tuple/tuple-rest-not-last.ts
@@ -0,0 +1,3 @@
// https://github.com/babel/babel/pull/11753

let x: [...[number, string], string]

0 comments on commit 24730d5

Please sign in to comment.