109 lines
2.1 KiB
Plaintext
109 lines
2.1 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`catch.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["flow", "typescript"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
try {}
|
|
catch(
|
|
// comment
|
|
foo
|
|
) {}
|
|
|
|
try {}
|
|
catch(foo //comment
|
|
) {}
|
|
|
|
try {}
|
|
catch(
|
|
/* comment */ foo
|
|
) {}
|
|
|
|
try {}
|
|
catch(
|
|
foo /* comment */
|
|
) {}
|
|
|
|
try {}
|
|
catch(
|
|
foo
|
|
/* comment */
|
|
) {}
|
|
|
|
=====================================output=====================================
|
|
try {
|
|
} catch (
|
|
// comment
|
|
foo
|
|
) {}
|
|
|
|
try {
|
|
} catch (
|
|
foo //comment
|
|
) {}
|
|
|
|
try {
|
|
} catch (/* comment */ foo) {}
|
|
|
|
try {
|
|
} catch (foo /* comment */) {}
|
|
|
|
try {
|
|
} catch (
|
|
foo
|
|
/* comment */
|
|
) {}
|
|
|
|
================================================================================
|
|
`;
|
|
|
|
exports[`empty.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["flow", "typescript"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
try {
|
|
} catch (e) {
|
|
}
|
|
finally {
|
|
}
|
|
|
|
try {
|
|
} catch (e) {
|
|
}
|
|
|
|
=====================================output=====================================
|
|
try {
|
|
} catch (e) {
|
|
} finally {
|
|
}
|
|
|
|
try {
|
|
} catch (e) {}
|
|
|
|
================================================================================
|
|
`;
|
|
|
|
exports[`try.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["flow", "typescript"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
try
|
|
/* missing comment */
|
|
{;}
|
|
finally {}
|
|
|
|
=====================================output=====================================
|
|
try {
|
|
/* missing comment */
|
|
} finally {
|
|
}
|
|
|
|
================================================================================
|
|
`;
|