2017-05-08 15:57:19 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`generic-component.tsx 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["typescript"]
|
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2018-04-24 16:45:31 +03:00
|
|
|
const c1 = <MyComponent<number> data={12} />
|
|
|
|
|
|
|
|
const c2 = <MyComponent<number> />
|
|
|
|
|
|
|
|
const c3 = <MyComponent<number> attr="value" />
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2018-04-24 16:45:31 +03:00
|
|
|
const c1 = <MyComponent<number> data={12} />;
|
|
|
|
|
|
|
|
const c2 = <MyComponent<number> />;
|
|
|
|
|
|
|
|
const c3 = <MyComponent<number> attr="value" />;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2018-04-24 16:45:31 +03:00
|
|
|
`;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`keyword.tsx 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["typescript"]
|
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-06-08 19:25:28 +03:00
|
|
|
<try />;
|
|
|
|
<object />
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2017-06-08 19:25:28 +03:00
|
|
|
<try />;
|
|
|
|
<object />;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2017-06-08 19:25:28 +03:00
|
|
|
`;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`not-react.ts 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["typescript"]
|
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-05-08 15:57:19 +03:00
|
|
|
/// <reference types="node" />
|
|
|
|
|
|
|
|
type ul = any;
|
|
|
|
const somethingElse = 1;
|
|
|
|
const thing = <ul>somethingElse;
|
|
|
|
const div = "<div></div>";
|
|
|
|
const h1 = \`<h1>Hi</h1>\`;
|
|
|
|
const footer = '<footer></footer>';
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2017-05-08 15:57:19 +03:00
|
|
|
/// <reference types="node" />
|
|
|
|
|
|
|
|
type ul = any;
|
|
|
|
const somethingElse = 1;
|
|
|
|
const thing = <ul>somethingElse;
|
|
|
|
const div = "<div></div>";
|
|
|
|
const h1 = \`<h1>Hi</h1>\`;
|
|
|
|
const footer = "<footer></footer>";
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2017-05-08 15:57:19 +03:00
|
|
|
`;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`react.tsx 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["typescript"]
|
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-05-08 15:57:19 +03:00
|
|
|
const MyCoolList = ({ things }) =>
|
|
|
|
<ul>
|
|
|
|
{things.map(MyCoolThing)}
|
|
|
|
</ul>;
|
|
|
|
|
|
|
|
const MyCoolThing = ({ thingo }) => <li>{thingo}</li>;
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2017-07-10 22:02:30 +03:00
|
|
|
const MyCoolList = ({ things }) => <ul>{things.map(MyCoolThing)}</ul>;
|
|
|
|
|
|
|
|
const MyCoolThing = ({ thingo }) => <li>{thingo}</li>;
|
2017-05-08 15:57:19 +03:00
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2017-05-08 15:57:19 +03:00
|
|
|
`;
|
2017-06-03 00:27:27 +03:00
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`this.tsx 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["typescript"]
|
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-06-03 00:27:27 +03:00
|
|
|
<this.state.Component />;
|
2017-07-13 10:21:46 +03:00
|
|
|
<this.Component />;
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2017-06-03 00:27:27 +03:00
|
|
|
<this.state.Component />;
|
2017-07-13 10:21:46 +03:00
|
|
|
<this.Component />;
|
2017-06-03 00:27:27 +03:00
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2017-06-03 00:27:27 +03:00
|
|
|
`;
|