2017-02-23 01:43:29 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`catch.js 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["flow", "typescript"]
|
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2018-10-08 20:18:30 +03:00
|
|
|
try {}
|
|
|
|
catch(
|
|
|
|
// comment
|
|
|
|
foo
|
|
|
|
) {}
|
|
|
|
|
|
|
|
try {}
|
|
|
|
catch(foo //comment
|
|
|
|
) {}
|
|
|
|
|
|
|
|
try {}
|
|
|
|
catch(
|
|
|
|
/* comment */ foo
|
|
|
|
) {}
|
|
|
|
|
|
|
|
try {}
|
|
|
|
catch(
|
|
|
|
foo /* comment */
|
|
|
|
) {}
|
|
|
|
|
|
|
|
try {}
|
|
|
|
catch(
|
|
|
|
foo
|
|
|
|
/* comment */
|
|
|
|
) {}
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2018-10-08 20:18:30 +03:00
|
|
|
try {
|
|
|
|
} catch (
|
|
|
|
// comment
|
|
|
|
foo
|
|
|
|
) {}
|
|
|
|
|
|
|
|
try {
|
|
|
|
} catch (
|
|
|
|
foo //comment
|
|
|
|
) {}
|
|
|
|
|
|
|
|
try {
|
|
|
|
} catch (/* comment */ foo) {}
|
|
|
|
|
|
|
|
try {
|
|
|
|
} catch (foo /* comment */) {}
|
|
|
|
|
|
|
|
try {
|
|
|
|
} catch (
|
|
|
|
foo
|
|
|
|
/* comment */
|
|
|
|
) {}
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2018-10-08 20:18:30 +03:00
|
|
|
`;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`empty.js 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["flow", "typescript"]
|
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-04-12 23:41:51 +03:00
|
|
|
try {
|
2017-02-23 18:29:05 +03:00
|
|
|
} catch (e) {
|
|
|
|
}
|
|
|
|
finally {
|
|
|
|
}
|
|
|
|
|
|
|
|
try {
|
|
|
|
} catch (e) {
|
|
|
|
}
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2017-02-23 18:29:05 +03:00
|
|
|
try {
|
|
|
|
} catch (e) {
|
|
|
|
} finally {
|
|
|
|
}
|
|
|
|
|
|
|
|
try {
|
|
|
|
} catch (e) {}
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2017-02-23 18:29:05 +03:00
|
|
|
`;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`try.js 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["flow", "typescript"]
|
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-04-12 23:41:51 +03:00
|
|
|
try
|
2017-02-23 01:43:29 +03:00
|
|
|
/* missing comment */
|
|
|
|
{;}
|
|
|
|
finally {}
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2017-02-23 01:43:29 +03:00
|
|
|
try {
|
|
|
|
/* missing comment */
|
|
|
|
} finally {
|
|
|
|
}
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2017-02-23 01:43:29 +03:00
|
|
|
`;
|