157 lines
4.7 KiB
Plaintext
157 lines
4.7 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`comment.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["flow", "babel"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
const myValue = (callcallcallcallcallcall(87689769876876897698768768976987687689769876):
|
|
// Comment
|
|
one | two| thre | jdkxhflksjdhfglkjsdhfglkjhsdkfljghskdjhfgkljshdfgkjhsdkljfhgkljshdfgjdfklgjhklj );
|
|
|
|
=====================================output=====================================
|
|
const myValue = (callcallcallcallcallcall(
|
|
87689769876876897698768768976987687689769876
|
|
): // Comment
|
|
| one
|
|
| two
|
|
| thre
|
|
| jdkxhflksjdhfglkjsdhfglkjhsdkfljghskdjhfgkljshdfgkjhsdkljfhgkljshdfgjdfklgjhklj);
|
|
|
|
================================================================================
|
|
`;
|
|
|
|
exports[`union.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["flow", "babel"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
interface RelayProps {
|
|
articles: Array<{
|
|
__id: string,
|
|
} | null> | null | void | 1,
|
|
}
|
|
|
|
interface RelayProps2 {
|
|
articles: Array<{
|
|
__id: string,
|
|
} | null> | null | void,
|
|
}
|
|
|
|
export function aPrettyLongFunction(aRatherLongParamName: string | null): string {}
|
|
|
|
export function aPrettyLongFunctionA(aRatherLongParameterName: {} | null): string[] {}
|
|
export function aPrettyLongFunctionB(aRatherLongParameterName: Function | null): string[] {}
|
|
export interface MyInterface {}
|
|
export function aPrettyLongFunctionC(aRatherLongParameterName: MyInterface | null): string[] {}
|
|
export type MyType = MyInterface
|
|
export function aPrettyLongFunctionD(aRatherLongParameterName: MyType | null): string[] {}
|
|
|
|
export function aShortFn(aShortParmName: MyType | null): string[] {}
|
|
|
|
export function aPrettyLongFunctionE(aRatherLongParameterName: Array<{
|
|
__id: string,
|
|
} | null> | null | void): string[] {}
|
|
|
|
=====================================output=====================================
|
|
interface RelayProps {
|
|
articles:
|
|
| Array<{
|
|
__id: string
|
|
} | null>
|
|
| null
|
|
| void
|
|
| 1;
|
|
}
|
|
|
|
interface RelayProps2 {
|
|
articles: Array<{
|
|
__id: string
|
|
} | null> | null | void;
|
|
}
|
|
|
|
export function aPrettyLongFunction(
|
|
aRatherLongParamName: string | null
|
|
): string {}
|
|
|
|
export function aPrettyLongFunctionA(
|
|
aRatherLongParameterName: {} | null
|
|
): string[] {}
|
|
export function aPrettyLongFunctionB(
|
|
aRatherLongParameterName: Function | null
|
|
): string[] {}
|
|
export interface MyInterface {}
|
|
export function aPrettyLongFunctionC(
|
|
aRatherLongParameterName: MyInterface | null
|
|
): string[] {}
|
|
export type MyType = MyInterface;
|
|
export function aPrettyLongFunctionD(
|
|
aRatherLongParameterName: MyType | null
|
|
): string[] {}
|
|
|
|
export function aShortFn(aShortParmName: MyType | null): string[] {}
|
|
|
|
export function aPrettyLongFunctionE(
|
|
aRatherLongParameterName: Array<{
|
|
__id: string
|
|
} | null> | null | void
|
|
): string[] {}
|
|
|
|
================================================================================
|
|
`;
|
|
|
|
exports[`within-tuple.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["flow", "babel"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
type A = [AAAAAAAAAAAAAAAAAAAAAA | BBBBBBBBBBBBBBBBBBBBBB | CCCCCCCCCCCCCCCCCCCCCC | DDDDDDDDDDDDDDDDDDDDDD]
|
|
|
|
type B = [
|
|
| AAAAAAAAAAAAAAAAAAAAAA
|
|
| BBBBBBBBBBBBBBBBBBBBBB
|
|
| CCCCCCCCCCCCCCCCCCCCCC
|
|
| DDDDDDDDDDDDDDDDDDDDDD
|
|
]
|
|
|
|
type C = [
|
|
| [AAAAAAAAAAAAAAAAAAAAAA | BBBBBBBBBBBBBBBBBBBBBB | CCCCCCCCCCCCCCCCCCCCCC | DDDDDDDDDDDDDDDDDDDDDD]
|
|
| [AAAAAAAAAAAAAAAAAAAAAA | BBBBBBBBBBBBBBBBBBBBBB | CCCCCCCCCCCCCCCCCCCCCC | DDDDDDDDDDDDDDDDDDDDDD]
|
|
]
|
|
|
|
=====================================output=====================================
|
|
type A = [
|
|
| AAAAAAAAAAAAAAAAAAAAAA
|
|
| BBBBBBBBBBBBBBBBBBBBBB
|
|
| CCCCCCCCCCCCCCCCCCCCCC
|
|
| DDDDDDDDDDDDDDDDDDDDDD
|
|
];
|
|
|
|
type B = [
|
|
| AAAAAAAAAAAAAAAAAAAAAA
|
|
| BBBBBBBBBBBBBBBBBBBBBB
|
|
| CCCCCCCCCCCCCCCCCCCCCC
|
|
| DDDDDDDDDDDDDDDDDDDDDD
|
|
];
|
|
|
|
type C = [
|
|
| [
|
|
| AAAAAAAAAAAAAAAAAAAAAA
|
|
| BBBBBBBBBBBBBBBBBBBBBB
|
|
| CCCCCCCCCCCCCCCCCCCCCC
|
|
| DDDDDDDDDDDDDDDDDDDDDD
|
|
]
|
|
| [
|
|
| AAAAAAAAAAAAAAAAAAAAAA
|
|
| BBBBBBBBBBBBBBBBBBBBBB
|
|
| CCCCCCCCCCCCCCCCCCCCCC
|
|
| DDDDDDDDDDDDDDDDDDDDDD
|
|
]
|
|
];
|
|
|
|
================================================================================
|
|
`;
|