Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Apr 12, 2021
1 parent 7ec0b1d commit 8d22ea3
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
@@ -0,0 +1,43 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`function-rest-trailing-comma.ts - {"trailingComma":"all"} format 1`] = `
====================================options=====================================
parsers: ["typescript"]
printWidth: 80
trailingComma: "all"
| printWidth
=====================================input======================================
declare function foo(...args: any[], )
=====================================output=====================================
declare function foo(...args: any[]);
================================================================================
`;

exports[`function-rest-trailing-comma.ts - {"trailingComma":"es5"} format 1`] = `
====================================options=====================================
parsers: ["typescript"]
printWidth: 80
trailingComma: "es5"
| printWidth
=====================================input======================================
declare function foo(...args: any[], )
=====================================output=====================================
declare function foo(...args: any[]);
================================================================================
`;

exports[`function-rest-trailing-comma.ts - {"trailingComma":"none"} format 1`] = `
====================================options=====================================
parsers: ["typescript"]
printWidth: 80
trailingComma: "none"
| printWidth
=====================================input======================================
declare function foo(...args: any[], )
=====================================output=====================================
declare function foo(...args: any[]);
================================================================================
`;
@@ -0,0 +1 @@
declare function foo(...args: any[], )
3 changes: 3 additions & 0 deletions tests/typescript/declare/trailing-comma/jsfmt.spec.js
@@ -0,0 +1,3 @@
run_spec(__dirname, ["typescript"], {trailingComma: "es5"});
run_spec(__dirname, ["typescript"], {trailingComma: "none"});
run_spec(__dirname, ["typescript"], {trailingComma: "all"});

0 comments on commit 8d22ea3

Please sign in to comment.