Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Oct 22, 2020
1 parent 7300fe9 commit 988cff6
Show file tree
Hide file tree
Showing 27 changed files with 848 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tests/js/arrow-call/__snapshots__/jsfmt.spec.js.snap
Expand Up @@ -302,6 +302,26 @@ promise.then((result) =>
================================================================================
`;

exports[`class-property.js [espree] format 1`] = `
"Unexpected token = (3:22)
1 | const composition = (ViewComponent, ContainerComponent) =>
2 | class extends React.Component {
> 3 | static propTypes = {};
| ^
4 | };
5 | "
`;

exports[`class-property.js - {"arrowParens":"always"} [espree] format 1`] = `
"Unexpected token = (3:22)
1 | const composition = (ViewComponent, ContainerComponent) =>
2 | class extends React.Component {
> 3 | static propTypes = {};
| ^
4 | };
5 | "
`;

exports[`class-property.js - {"arrowParens":"always"} format 1`] = `
====================================options=====================================
arrowParens: "always"
Expand All @@ -323,6 +343,16 @@ const composition = (ViewComponent, ContainerComponent) =>
================================================================================
`;

exports[`class-property.js - {"trailingComma":"all"} [espree] format 1`] = `
"Unexpected token = (3:22)
1 | const composition = (ViewComponent, ContainerComponent) =>
2 | class extends React.Component {
> 3 | static propTypes = {};
| ^
4 | };
5 | "
`;

exports[`class-property.js - {"trailingComma":"all"} format 1`] = `
====================================options=====================================
parsers: ["babel", "flow", "typescript"]
Expand Down
9 changes: 9 additions & 0 deletions tests/js/arrows-bind/__snapshots__/jsfmt.spec.js.snap
@@ -1,5 +1,14 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`arrows-bind.js [espree] format 1`] = `
"Unexpected token : (1:9)
> 1 | a => ({}::b()\`\`[''].c++ && 0 ? 0 : 0);
| ^
2 | (a => b)::c;
3 | a::(b => c);
4 | "
`;

exports[`arrows-bind.js format 1`] = `
====================================options=====================================
parsers: ["babel"]
Expand Down

0 comments on commit 988cff6

Please sign in to comment.