forked from prettier/prettier
/
jsfmt.spec.js.snap
42 lines (31 loc) · 939 Bytes
/
jsfmt.spec.js.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`class_with_generics.js - babylon-verify 1`] = `
import React from 'react';
/*:: type Props = {
foo?: ?string,
bar: number,
}; */
/*:: type State = { baz: number }; */
class Component extends React.Component/*:: <Props, State> */ {
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
import React from "react";
/*:: type Props = {
foo?: ?string,
bar: number,
}; */
/*:: type State = { baz: number }; */
class Component extends React.Component /*:: <Props, State> */ {
}
`;
exports[`functions.js - babylon-verify 1`] = `
export function updateStoreFromURL(
store /*: Store*/,
{search, hash} /*: {search: string, hash: string}*/
) {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export function updateStoreFromURL(
store /*: Store*/,
{ search, hash } /*: {search: string, hash: string}*/
) {}
`;