Files
test-repo/tests/format/js/rest/__snapshots__/jsfmt.spec.js.snap
T

92 lines
2.6 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`trailing-commas.js - {"trailingComma":"all"} [acorn] format 1`] = `
"Unexpected token (1:9)
> 1 | declare class C {
| ^
2 | f(
3 | superSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLong,
4 | ...args"
`;
exports[`trailing-commas.js - {"trailingComma":"all"} [espree] format 1`] = `
"Unexpected token class (1:9)
> 1 | declare class C {
| ^
2 | f(
3 | superSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLong,
4 | ...args"
`;
exports[`trailing-commas.js - {"trailingComma":"all"} [meriyah] format 1`] = `
"Unexpected token: 'class' (1:13)
> 1 | declare class C {
| ^
2 | f(
3 | superSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLong,
4 | ...args"
`;
exports[`trailing-commas.js - {"trailingComma":"all"} format 1`] = `
====================================options=====================================
parsers: ["babel", "flow"]
printWidth: 80
trailingComma: "all"
| printWidth
=====================================input======================================
declare class C {
f(
superSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLong,
...args
): void,
}
function f(
superSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLong,
...args
) {}
declare class C { f(...superSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLong): void; }
[superSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLong,,];
[veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLong, ...a] = [];
var {veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLong, ...a} = {};
=====================================output=====================================
declare class C {
f(
superSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLong,
...args
): void;
}
function f(
superSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLong,
...args
) {}
declare class C {
f(
...superSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLong
): void;
}
[
superSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLong,
,
];
[
veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLong,
...a
] = [];
var {
veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLong,
...a
} = {};
================================================================================
`;