forked from prettier/prettier
/
jsfmt.spec.js.snap
43 lines (35 loc) · 1.33 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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`declare-index-signature.ts format 1`] = `
====================================options=====================================
parsers: ["babel-ts"]
printWidth: 80
| printWidth
=====================================input======================================
// Invalid, but recoverable
class C {
declare [key: string]: string;
}
=====================================output=====================================
// Invalid, but recoverable
class C {
declare [key: string]: string;
}
================================================================================
`;
exports[`tuple-labeled-ts.ts format 1`] = `
====================================options=====================================
parsers: ["babel-ts"]
printWidth: 80
| printWidth
=====================================input======================================
// Invalid label 1
type T = [x.y: A];
// Invalid label 2
type T = [x<y>: A];
=====================================output=====================================
// Invalid label 1
type T = [x.y: A];
// Invalid label 2
type T = [x<y>: A];
================================================================================
`;