prettier/tests/function/__snapshots__/jsfmt.spec.js.snap

74 lines
1.9 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`function_expression.js 1`] = `
====================================options=====================================
parsers: ["flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
(function() {}).length
typeof (function() {});
export default (function() {})();
(function() {})()\`\`;
(function() {})\`\`;
new (function() {});
(function() {});
a = function f() {} || b;
(function() {} && a);
a + function() {};
new function() {};
=====================================output=====================================
(function() {}.length);
typeof function() {};
export default (function() {})();
(function() {})()\`\`;
(function() {})\`\`;
new (function() {})();
(function() {});
a = function f() {} || b;
(function() {} && a);
a + function() {};
new (function() {})();
================================================================================
`;
exports[`single_expand.js 1`] = `
====================================options=====================================
parsers: ["flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
function onDidInsertSuggestion({
editor,
triggerPosition,
re
}): Promise<void> {
}
class X {
async onDidInsertSuggestion({editor, triggerPosition, suggestion}): Promise<
void
> {
}
}
=====================================output=====================================
function onDidInsertSuggestion({
editor,
triggerPosition,
re
}): Promise<void> {}
class X {
async onDidInsertSuggestion({
editor,
triggerPosition,
suggestion
}): Promise<void> {}
}
================================================================================
`;