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

26 lines
632 B
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`expression.js - flow-verify 1`] = `
let x: string = (foo: string);
// https://github.com/prettier/prettier/issues/3936
const foo = ((1?2:3): number);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
let x: string = (foo: string);
// https://github.com/prettier/prettier/issues/3936
const foo = ((1 ? 2 : 3): number);
`;
exports[`statement.js - flow-verify 1`] = `
foo: string;
bar: number;
(foo.bar: SomeType);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo: string;
bar: number;
(foo.bar: SomeType);
`;