Skip to content

Commit

Permalink
test: fix snapshot test
Browse files Browse the repository at this point in the history
  • Loading branch information
macrat committed Feb 8, 2024
1 parent a6e8cf9 commit d8d6131
Showing 1 changed file with 34 additions and 4 deletions.
38 changes: 34 additions & 4 deletions builder/minify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,29 @@ func TestHoistingHTML(t *testing.T) {
` <title>Hoisting</title>`,
` `,
` `,
` <style>body{background-color:#fff}p{color:#000}</style></head>`,
` <style>`,
`body {`,
` background-color: #fff;`,
`}`,
` `,
``,
`p {`,
` color: #000;`,
`}`,
` </style></head>`,
` <body>`,
` <h1>Hoisting</h1>`,
` <p>Hoisting for HTML!</p>`,
` `,
` `,
` `,
`<script>console.log("hello"),console.log("world!")</script></body></html>`,
`<script>`,
` console.log("hello");`,
` `,
`;`,
``,
` console.log("world!");`,
` </script></body></html>`,
}, "\n"),
},
{
Expand Down Expand Up @@ -129,14 +144,29 @@ func TestHoistingHTML(t *testing.T) {
` <script src="https://example.com/lib/script.js"></script>`,
` `,
` `,
` <style>body{background-color:#fff}p{color:#000}</style></head>`,
` <style>`,
`body {`,
` background-color: #fff;`,
`}`,
` `,
``,
`p {`,
` color: #000;`,
`}`,
` </style></head>`,
` <body>`,
` <h1>Hoisting</h1>`,
` <p>Hoisting for HTML!</p>`,
` `,
` `,
` `,
`<script>console.log("hello"),console.log("world!")</script></body></html>`,
`<script>`,
` console.log("hello");`,
` `,
`;`,
``,
` console.log("world!");`,
` </script></body></html>`,
}, "\n"),
},
}
Expand Down

0 comments on commit d8d6131

Please sign in to comment.