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

64 lines
857 B
Plaintext
Raw Normal View History

exports[`test A.js 1`] = `
"/**
* @providesModule A
* @flow
*/
import type T from "T";
export default class {
p: T;
constructor() {
this.p = 0;
}
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/**
* @providesModule A
* @flow
*/
import type T from "T";
export default class {
p: T;
constructor() {
this.p = 0;
}
}
"
`;
exports[`test B.js 1`] = `
"/**
* @flow
*/
import A from "A"
class B extends A {
p: string; // OK, string ~> any
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/**
* @flow
*/
2016-12-27 21:29:31 +03:00
// OK, string ~> any
import A from "A";
class B extends A {
2016-12-27 21:29:31 +03:00
p: string;
}
"
`;
exports[`test T.js 1`] = `
"/**
* @providesModule T
*/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2016-12-27 21:29:31 +03:00
/**
* @providesModule T
*/
"
`;