142 lines
5.8 KiB
Plaintext
142 lines
5.8 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`export_default_arrow_expression.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["babel", "flow", "typescript"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
export default () => {};
|
|
|
|
=====================================output=====================================
|
|
export default () => {};
|
|
|
|
================================================================================
|
|
`;
|
|
|
|
exports[`export_default_call_expression.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["babel", "flow", "typescript"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
export default foo()
|
|
|
|
=====================================output=====================================
|
|
export default foo();
|
|
|
|
================================================================================
|
|
`;
|
|
|
|
exports[`export_default_class_declaration.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["babel", "flow", "typescript"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
export default class Foo {}
|
|
|
|
=====================================output=====================================
|
|
export default class Foo {}
|
|
|
|
================================================================================
|
|
`;
|
|
|
|
exports[`export_default_class_expression.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["babel", "flow", "typescript"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
export default (class foobar {})
|
|
|
|
=====================================output=====================================
|
|
export default (class foobar {});
|
|
|
|
================================================================================
|
|
`;
|
|
|
|
exports[`export_default_function_declaration.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["babel", "flow", "typescript"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
export default function() {}
|
|
|
|
=====================================output=====================================
|
|
export default function() {}
|
|
|
|
================================================================================
|
|
`;
|
|
|
|
exports[`export_default_function_declaration_async.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["babel", "flow", "typescript"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
export default async function foo() {}
|
|
|
|
=====================================output=====================================
|
|
export default async function foo() {}
|
|
|
|
================================================================================
|
|
`;
|
|
|
|
exports[`export_default_function_declaration_named.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["babel", "flow", "typescript"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
export default function f(){}
|
|
|
|
=====================================output=====================================
|
|
export default function f() {}
|
|
|
|
================================================================================
|
|
`;
|
|
|
|
exports[`export_default_function_expression.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["babel", "flow", "typescript"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
export default (function() {});
|
|
|
|
=====================================output=====================================
|
|
export default (function() {});
|
|
|
|
================================================================================
|
|
`;
|
|
|
|
exports[`export_default_function_expression_named.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["babel", "flow", "typescript"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
export default (function f(){})
|
|
|
|
=====================================output=====================================
|
|
export default (function f() {});
|
|
|
|
================================================================================
|
|
`;
|
|
|
|
exports[`export_default_new_expression.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["babel", "flow", "typescript"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
export default new Foo();
|
|
|
|
=====================================output=====================================
|
|
export default new Foo();
|
|
|
|
================================================================================
|
|
`;
|