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

49 lines
1.0 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`html-with-ts-script.html 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>
================================================================================
`;