prettier/tests/flow/declaration_files_increment.../__snapshots__/jsfmt.spec.js.snap

50 lines
1.7 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`A.js 1`] = `
====================================options=====================================
parsers: ["flow"]
printWidth: 80
| printWidth
=====================================input======================================
/* @flow */
class AImplementation {}
export function foo(): AImplementation { return new AImplementation(); }
=====================================output=====================================
/* @flow */
class AImplementation {}
export function foo(): AImplementation {
return new AImplementation();
}
================================================================================
`;
exports[`index.js 1`] = `
====================================options=====================================
parsers: ["flow"]
printWidth: 80
| printWidth
=====================================input======================================
/* @flow */
var A = require('A');
(A.foo(): boolean); // Error: Either AImplementation ~> boolean or ADefinition ~> boolean
var test = require('test');
(test.foo(): boolean); // Error: Either TestImplementation ~> boolean or TestDefinition ~> boolean
=====================================output=====================================
/* @flow */
var A = require("A");
(A.foo(): boolean); // Error: Either AImplementation ~> boolean or ADefinition ~> boolean
var test = require("test");
(test.foo(): boolean); // Error: Either TestImplementation ~> boolean or TestDefinition ~> boolean
================================================================================
`;