622 lines
12 KiB
Plaintext
622 lines
12 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`expression.js 1`] = `
|
|
"<View
|
|
style={
|
|
{
|
|
someVeryLongStyle1: \\"true\\",
|
|
someVeryLongStyle2: \\"true\\",
|
|
someVeryLongStyle3: \\"true\\",
|
|
someVeryLongStyle4: \\"true\\"
|
|
}
|
|
}
|
|
/>;
|
|
|
|
<View
|
|
style={
|
|
[
|
|
{
|
|
someVeryLongStyle1: \\"true\\",
|
|
someVeryLongStyle2: \\"true\\",
|
|
someVeryLongStyle3: \\"true\\",
|
|
someVeryLongStyle4: \\"true\\"
|
|
}
|
|
]
|
|
}
|
|
/>;
|
|
|
|
<Something>
|
|
{() => (
|
|
<SomethingElse>
|
|
<span />
|
|
</SomethingElse>
|
|
)}
|
|
</Something>;
|
|
|
|
<Something>
|
|
{items.map(item => (
|
|
<SomethingElse>
|
|
<span />
|
|
</SomethingElse>
|
|
))}
|
|
</Something>;
|
|
|
|
<Something>
|
|
{function() {
|
|
return (
|
|
<SomethingElse>
|
|
<span />
|
|
</SomethingElse>
|
|
);
|
|
}}
|
|
</Something>;
|
|
|
|
<RadioListItem
|
|
key={option}
|
|
imageSource={this.props.veryBigItemImageSourceFunc &&
|
|
this.props.veryBigItemImageSourceFunc(option)}
|
|
imageSize={this.props.veryBigItemImageSize}
|
|
imageView={this.props.veryBigItemImageViewFunc &&
|
|
this.props.veryBigItemImageViewFunc(option)}
|
|
heading={this.props.displayTextFunc(option)}
|
|
value={option}
|
|
/>;
|
|
|
|
<ParentComponent prop={
|
|
<Child>
|
|
test
|
|
</Child>
|
|
}/>;
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
<View
|
|
style={{
|
|
someVeryLongStyle1: \\"true\\",
|
|
someVeryLongStyle2: \\"true\\",
|
|
someVeryLongStyle3: \\"true\\",
|
|
someVeryLongStyle4: \\"true\\"
|
|
}}
|
|
/>;
|
|
|
|
<View
|
|
style={[
|
|
{
|
|
someVeryLongStyle1: \\"true\\",
|
|
someVeryLongStyle2: \\"true\\",
|
|
someVeryLongStyle3: \\"true\\",
|
|
someVeryLongStyle4: \\"true\\"
|
|
}
|
|
]}
|
|
/>;
|
|
|
|
<Something>
|
|
{() => (
|
|
<SomethingElse>
|
|
<span />
|
|
</SomethingElse>
|
|
)}
|
|
</Something>;
|
|
|
|
<Something>
|
|
{items.map(item => (
|
|
<SomethingElse>
|
|
<span />
|
|
</SomethingElse>
|
|
))}
|
|
</Something>;
|
|
|
|
<Something>
|
|
{function() {
|
|
return (
|
|
<SomethingElse>
|
|
<span />
|
|
</SomethingElse>
|
|
);
|
|
}}
|
|
</Something>;
|
|
|
|
<RadioListItem
|
|
key={option}
|
|
imageSource={
|
|
this.props.veryBigItemImageSourceFunc &&
|
|
this.props.veryBigItemImageSourceFunc(option)
|
|
}
|
|
imageSize={this.props.veryBigItemImageSize}
|
|
imageView={
|
|
this.props.veryBigItemImageViewFunc &&
|
|
this.props.veryBigItemImageViewFunc(option)
|
|
}
|
|
heading={this.props.displayTextFunc(option)}
|
|
value={option}
|
|
/>;
|
|
|
|
<ParentComponent
|
|
prop={
|
|
<Child>
|
|
test
|
|
</Child>
|
|
}
|
|
/>;
|
|
"
|
|
`;
|
|
|
|
exports[`expression.js 2`] = `
|
|
"<View
|
|
style={
|
|
{
|
|
someVeryLongStyle1: \\"true\\",
|
|
someVeryLongStyle2: \\"true\\",
|
|
someVeryLongStyle3: \\"true\\",
|
|
someVeryLongStyle4: \\"true\\"
|
|
}
|
|
}
|
|
/>;
|
|
|
|
<View
|
|
style={
|
|
[
|
|
{
|
|
someVeryLongStyle1: \\"true\\",
|
|
someVeryLongStyle2: \\"true\\",
|
|
someVeryLongStyle3: \\"true\\",
|
|
someVeryLongStyle4: \\"true\\"
|
|
}
|
|
]
|
|
}
|
|
/>;
|
|
|
|
<Something>
|
|
{() => (
|
|
<SomethingElse>
|
|
<span />
|
|
</SomethingElse>
|
|
)}
|
|
</Something>;
|
|
|
|
<Something>
|
|
{items.map(item => (
|
|
<SomethingElse>
|
|
<span />
|
|
</SomethingElse>
|
|
))}
|
|
</Something>;
|
|
|
|
<Something>
|
|
{function() {
|
|
return (
|
|
<SomethingElse>
|
|
<span />
|
|
</SomethingElse>
|
|
);
|
|
}}
|
|
</Something>;
|
|
|
|
<RadioListItem
|
|
key={option}
|
|
imageSource={this.props.veryBigItemImageSourceFunc &&
|
|
this.props.veryBigItemImageSourceFunc(option)}
|
|
imageSize={this.props.veryBigItemImageSize}
|
|
imageView={this.props.veryBigItemImageViewFunc &&
|
|
this.props.veryBigItemImageViewFunc(option)}
|
|
heading={this.props.displayTextFunc(option)}
|
|
value={option}
|
|
/>;
|
|
|
|
<ParentComponent prop={
|
|
<Child>
|
|
test
|
|
</Child>
|
|
}/>;
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
<View
|
|
style={{
|
|
someVeryLongStyle1: \\"true\\",
|
|
someVeryLongStyle2: \\"true\\",
|
|
someVeryLongStyle3: \\"true\\",
|
|
someVeryLongStyle4: \\"true\\"
|
|
}}
|
|
/>;
|
|
|
|
<View
|
|
style={[
|
|
{
|
|
someVeryLongStyle1: \\"true\\",
|
|
someVeryLongStyle2: \\"true\\",
|
|
someVeryLongStyle3: \\"true\\",
|
|
someVeryLongStyle4: \\"true\\"
|
|
}
|
|
]}
|
|
/>;
|
|
|
|
<Something>
|
|
{() => (
|
|
<SomethingElse>
|
|
<span />
|
|
</SomethingElse>
|
|
)}
|
|
</Something>;
|
|
|
|
<Something>
|
|
{items.map(item => (
|
|
<SomethingElse>
|
|
<span />
|
|
</SomethingElse>
|
|
))}
|
|
</Something>;
|
|
|
|
<Something>
|
|
{function() {
|
|
return (
|
|
<SomethingElse>
|
|
<span />
|
|
</SomethingElse>
|
|
);
|
|
}}
|
|
</Something>;
|
|
|
|
<RadioListItem
|
|
key={option}
|
|
imageSource={
|
|
this.props.veryBigItemImageSourceFunc &&
|
|
this.props.veryBigItemImageSourceFunc(option)
|
|
}
|
|
imageSize={this.props.veryBigItemImageSize}
|
|
imageView={
|
|
this.props.veryBigItemImageViewFunc &&
|
|
this.props.veryBigItemImageViewFunc(option)
|
|
}
|
|
heading={this.props.displayTextFunc(option)}
|
|
value={option}
|
|
/>;
|
|
|
|
<ParentComponent
|
|
prop={
|
|
<Child>
|
|
test
|
|
</Child>
|
|
}
|
|
/>;
|
|
"
|
|
`;
|
|
|
|
exports[`hug.js 1`] = `
|
|
"<div>
|
|
{__DEV__
|
|
? this.renderDevApp()
|
|
: <div>
|
|
{routes.map(route => (
|
|
<MatchAsync
|
|
key={\`\${route.to}-async\`}
|
|
pattern={route.to}
|
|
exactly={route.to === \\"/\\"}
|
|
getComponent={routeES6Modules[route.value]}
|
|
/>
|
|
))}
|
|
</div>}
|
|
</div>;
|
|
|
|
<div>
|
|
{__DEV__ && <div>
|
|
{routes.map(route => (
|
|
<MatchAsync
|
|
key={\`\${route.to}-async\`}
|
|
pattern={route.to}
|
|
exactly={route.to === \\"/\\"}
|
|
getComponent={routeES6Modules[route.value]}
|
|
/>
|
|
))}
|
|
</div>}
|
|
</div>;
|
|
|
|
<div>
|
|
{member.memberName.memberSomething +
|
|
(member.memberDef.memberSomething.signatures ? '()' : '')}
|
|
</div>
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
<div>
|
|
{__DEV__
|
|
? this.renderDevApp()
|
|
: <div>
|
|
{routes.map(route => (
|
|
<MatchAsync
|
|
key={\`\${route.to}-async\`}
|
|
pattern={route.to}
|
|
exactly={route.to === \\"/\\"}
|
|
getComponent={routeES6Modules[route.value]}
|
|
/>
|
|
))}
|
|
</div>}
|
|
</div>;
|
|
|
|
<div>
|
|
{__DEV__ &&
|
|
<div>
|
|
{routes.map(route => (
|
|
<MatchAsync
|
|
key={\`\${route.to}-async\`}
|
|
pattern={route.to}
|
|
exactly={route.to === \\"/\\"}
|
|
getComponent={routeES6Modules[route.value]}
|
|
/>
|
|
))}
|
|
</div>}
|
|
</div>;
|
|
|
|
<div>
|
|
{member.memberName.memberSomething +
|
|
(member.memberDef.memberSomething.signatures ? \\"()\\" : \\"\\")}
|
|
</div>;
|
|
"
|
|
`;
|
|
|
|
exports[`hug.js 2`] = `
|
|
"<div>
|
|
{__DEV__
|
|
? this.renderDevApp()
|
|
: <div>
|
|
{routes.map(route => (
|
|
<MatchAsync
|
|
key={\`\${route.to}-async\`}
|
|
pattern={route.to}
|
|
exactly={route.to === \\"/\\"}
|
|
getComponent={routeES6Modules[route.value]}
|
|
/>
|
|
))}
|
|
</div>}
|
|
</div>;
|
|
|
|
<div>
|
|
{__DEV__ && <div>
|
|
{routes.map(route => (
|
|
<MatchAsync
|
|
key={\`\${route.to}-async\`}
|
|
pattern={route.to}
|
|
exactly={route.to === \\"/\\"}
|
|
getComponent={routeES6Modules[route.value]}
|
|
/>
|
|
))}
|
|
</div>}
|
|
</div>;
|
|
|
|
<div>
|
|
{member.memberName.memberSomething +
|
|
(member.memberDef.memberSomething.signatures ? '()' : '')}
|
|
</div>
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
<div>
|
|
{__DEV__
|
|
? this.renderDevApp()
|
|
: <div>
|
|
{routes.map(route => (
|
|
<MatchAsync
|
|
key={\`\${route.to}-async\`}
|
|
pattern={route.to}
|
|
exactly={route.to === \\"/\\"}
|
|
getComponent={routeES6Modules[route.value]}
|
|
/>
|
|
))}
|
|
</div>}
|
|
</div>;
|
|
|
|
<div>
|
|
{__DEV__ &&
|
|
<div>
|
|
{routes.map(route => (
|
|
<MatchAsync
|
|
key={\`\${route.to}-async\`}
|
|
pattern={route.to}
|
|
exactly={route.to === \\"/\\"}
|
|
getComponent={routeES6Modules[route.value]}
|
|
/>
|
|
))}
|
|
</div>}
|
|
</div>;
|
|
|
|
<div>
|
|
{member.memberName.memberSomething +
|
|
(member.memberDef.memberSomething.signatures ? \\"()\\" : \\"\\")}
|
|
</div>;
|
|
"
|
|
`;
|
|
|
|
exports[`object-property.js 1`] = `
|
|
"const tabs = [
|
|
{
|
|
title: \\"General Info\\",
|
|
content: (
|
|
<GeneralForm
|
|
long-attribute=\\"i-need-long-value-here\\"
|
|
onSave={ onSave }
|
|
onCancel={ onCancel }
|
|
countries={ countries }
|
|
/>
|
|
)
|
|
}
|
|
];
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
const tabs = [
|
|
{
|
|
title: \\"General Info\\",
|
|
content: (
|
|
<GeneralForm
|
|
long-attribute=\\"i-need-long-value-here\\"
|
|
onSave={onSave}
|
|
onCancel={onCancel}
|
|
countries={countries}
|
|
/>
|
|
)
|
|
}
|
|
];
|
|
"
|
|
`;
|
|
|
|
exports[`object-property.js 2`] = `
|
|
"const tabs = [
|
|
{
|
|
title: \\"General Info\\",
|
|
content: (
|
|
<GeneralForm
|
|
long-attribute=\\"i-need-long-value-here\\"
|
|
onSave={ onSave }
|
|
onCancel={ onCancel }
|
|
countries={ countries }
|
|
/>
|
|
)
|
|
}
|
|
];
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
const tabs = [
|
|
{
|
|
title: \\"General Info\\",
|
|
content: (
|
|
<GeneralForm
|
|
long-attribute=\\"i-need-long-value-here\\"
|
|
onSave={onSave}
|
|
onCancel={onCancel}
|
|
countries={countries}
|
|
/>
|
|
)
|
|
}
|
|
];
|
|
"
|
|
`;
|
|
|
|
exports[`open-break.js 1`] = `
|
|
"<td
|
|
onClick={() => {
|
|
a
|
|
}}>{header}{showSort}</td>;
|
|
|
|
<td
|
|
onClick={() => {
|
|
a
|
|
}}>{header}<showSort attr=\\"long long long long long long long long long long long\\"/></td>;
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
<td
|
|
onClick={() => {
|
|
a;
|
|
}}
|
|
>
|
|
{header}{showSort}
|
|
</td>;
|
|
|
|
<td
|
|
onClick={() => {
|
|
a;
|
|
}}
|
|
>
|
|
{header}
|
|
<showSort attr=\\"long long long long long long long long long long long\\" />
|
|
</td>;
|
|
"
|
|
`;
|
|
|
|
exports[`open-break.js 2`] = `
|
|
"<td
|
|
onClick={() => {
|
|
a
|
|
}}>{header}{showSort}</td>;
|
|
|
|
<td
|
|
onClick={() => {
|
|
a
|
|
}}>{header}<showSort attr=\\"long long long long long long long long long long long\\"/></td>;
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
<td
|
|
onClick={() => {
|
|
a;
|
|
}}
|
|
>
|
|
{header}{showSort}
|
|
</td>;
|
|
|
|
<td
|
|
onClick={() => {
|
|
a;
|
|
}}
|
|
>
|
|
{header}
|
|
<showSort attr=\\"long long long long long long long long long long long\\" />
|
|
</td>;
|
|
"
|
|
`;
|
|
|
|
exports[`parens.js 1`] = `
|
|
"a = [
|
|
<path
|
|
key='0'
|
|
d='M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,'
|
|
/>,
|
|
<path
|
|
key='1'
|
|
d='M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,'
|
|
/>,
|
|
];
|
|
|
|
<div {...((foo || foo === null) ? {foo} : null)} />
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
a = [
|
|
<path
|
|
key=\\"0\\"
|
|
d=\\"M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,\\"
|
|
/>,
|
|
<path
|
|
key=\\"1\\"
|
|
d=\\"M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,\\"
|
|
/>
|
|
];
|
|
|
|
<div {...foo || foo === null ? { foo } : null} />;
|
|
"
|
|
`;
|
|
|
|
exports[`parens.js 2`] = `
|
|
"a = [
|
|
<path
|
|
key='0'
|
|
d='M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,'
|
|
/>,
|
|
<path
|
|
key='1'
|
|
d='M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,'
|
|
/>,
|
|
];
|
|
|
|
<div {...((foo || foo === null) ? {foo} : null)} />
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
a = [
|
|
<path
|
|
key=\\"0\\"
|
|
d=\\"M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,\\"
|
|
/>,
|
|
<path
|
|
key=\\"1\\"
|
|
d=\\"M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,M13.6,10.6l,4-2.8L9.5,\\"
|
|
/>
|
|
];
|
|
|
|
<div {...foo || foo === null ? { foo } : null} />;
|
|
"
|
|
`;
|
|
|
|
exports[`quotes.js 1`] = `
|
|
"<div id=\\""'<>&quot;\\" />;
|
|
<div id='\\"'<>&quot;' />;
|
|
<div id={'\\\\'\\""<>&quot;'} />;
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
<div id=\\""'<>&quot;\\" />;
|
|
<div id=\\""'<>&quot;\\" />;
|
|
<div id={\\"'\\\\\\""<>&quot;\\"} />;
|
|
"
|
|
`;
|
|
|
|
exports[`quotes.js 2`] = `
|
|
"<div id=\\""'<>&quot;\\" />;
|
|
<div id='\\"'<>&quot;' />;
|
|
<div id={'\\\\'\\""<>&quot;'} />;
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
<div id=\\""'<>&quot;\\" />;
|
|
<div id=\\""'<>&quot;\\" />;
|
|
<div id={\\"'\\\\\\""<>&quot;\\"} />;
|
|
"
|
|
`;
|