forked from prettier/prettier
/
jsfmt.spec.js.snap
61 lines (53 loc) · 1.48 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`async-arrow-invalid.js [flow] format 1`] = `
"Unexpected token ILLEGAL (4:1)
2 |
3 | <T> async () => {}
> 4 |
| ^"
`;
exports[`default-escaped.js [flow] format 1`] = `
"Unexpected token \`async\`, expected a declaration, statement or export specifiers (1:8)
> 1 | export asyn\\u{63} from "async";
| ^^^^^^^^^^
2 |"
`;
exports[`dynamic-import.js [flow] format 1`] = `
"Unexpected token \`,\`, expected the token \`)\` (1:24)
> 1 | import('./prettier.mjs', {})
| ^
2 |"
`;
exports[`function-async.js [flow] format 1`] = `
"Unexpected token \`;\`, expected the token \`=>\` (2:11)
1 | // Flow can't parse this since \`v0.128.0\`, #8661
> 2 | async<T>();
| ^"
`;
exports[`module-attributes-dynamic.js [flow] format 1`] = `
"Unexpected token \`,\`, expected the token \`)\` (1:18)
> 1 | import("foo.json", { with: { type: "json" } })
| ^
2 |"
`;
exports[`module-attributes-static.js [flow] format 1`] = `
"Unexpected token \`with\`, expected the token \`;\` (1:28)
> 1 | import foo from "foo.json" with type: "json";
| ^^^^
2 |"
`;
exports[`newline-before-arrow.js [flow] format 1`] = `
"Illegal newline before arrow (2:1)
1 | async x
> 2 | => x
| ^^
3 |"
`;
exports[`number.js [flow] format 1`] = `
"Unexpected token ILLEGAL (3:5)
1 | // https://github.com/babel/babel/pull/11854
2 |
> 3 | a = 09e1_1;
| ^^^^
4 |"
`;