/
jsfmt.spec.js.snap
48 lines (39 loc) · 1.04 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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`html-with-ts-script.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
=====================================input======================================
<!DOCTYPE html>
<html lang="en">
<head>
<script lang="ts">
type X = { [
K in keyof Y
]: Partial < K > } ;
class Foo< T >{
constructor ( private foo: keyof Apple ){
}
}
</script>
</head>
<body></body>
</html>
=====================================output=====================================
<!DOCTYPE html>
<html lang="en">
<head>
<script lang="ts">
type X = {
[K in keyof Y]: Partial<K>;
};
class Foo<T> {
constructor(private foo: keyof Apple) {}
}
</script>
</head>
<body></body>
</html>
================================================================================
`;