78 lines
2.0 KiB
Plaintext
78 lines
2.0 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`html-with-js-script.html 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["html"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<script type="text/javascript">
|
|
hello( 'world'
|
|
)
|
|
</script>
|
|
</head>
|
|
<body></body>
|
|
</html>
|
|
|
|
|
|
=====================================output=====================================
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<script type="text/javascript">
|
|
hello("world");
|
|
</script>
|
|
</head>
|
|
<body></body>
|
|
</html>
|
|
|
|
================================================================================
|
|
`;
|
|
|
|
exports[`script-tag-escaping.html 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["html"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
<script>
|
|
document.write(/* HTML */ \`
|
|
<script>
|
|
document.write(/* HTML */ \\\`
|
|
<!-- foo1 -->
|
|
<script>
|
|
document.write(/* HTML */ \\\\\\\`<!-- bar1 --> bar <!-- bar2 -->\\\\\\\`);
|
|
<\\\\/script>
|
|
<!-- foo2 -->
|
|
\\\`);
|
|
<\\/script>
|
|
\`);
|
|
</script>
|
|
|
|
=====================================output=====================================
|
|
<script>
|
|
document.write(/* HTML */ \`
|
|
<script>
|
|
document.write(/* HTML */ \\\`
|
|
<!-- foo1 -->
|
|
<script>
|
|
document.write(
|
|
/* HTML */ \\\\\\\`
|
|
<!-- bar1 -->
|
|
bar
|
|
<!-- bar2 -->
|
|
\\\\\\\`
|
|
);
|
|
<\\\\/script>
|
|
<!-- foo2 -->
|
|
\\\`);
|
|
<\\/script>
|
|
\`);
|
|
</script>
|
|
|
|
================================================================================
|
|
`;
|