Skip to content

Commit

Permalink
test: update svelte snapshot
Browse files Browse the repository at this point in the history
Now that <script> isn't injected any more
  • Loading branch information
tivac committed Mar 28, 2019
1 parent f0243aa commit 6e4d2c7
Showing 1 changed file with 10 additions and 34 deletions.
44 changes: 10 additions & 34 deletions packages/svelte/test/__snapshots__/svelte.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ exports[`/svelte.js should extract CSS from a <link> tag (no script) 1`] = `
<p class=\\"{bool ? \\"text\\" : \\"active\\" }\\">Text</p>
</div>
</div>
<script>
import css from \\"./external.css\\";
</script>"
"
`;
exports[`/svelte.js should extract CSS from a <link> tag (no script) 2`] = `
Expand Down Expand Up @@ -95,9 +93,7 @@ exports[`/svelte.js should extract CSS from a <link> tag (single quotes) 1`] = `
<p class=\\"{bool ? \\"text\\" : \\"active\\" }\\">Text</p>
</div>
</div>
<script>
import css from \\"./external.css\\";
</script>"
"
`;
exports[`/svelte.js should extract CSS from a <link> tag (single quotes) 2`] = `
Expand Down Expand Up @@ -130,9 +126,7 @@ exports[`/svelte.js should extract CSS from a <link> tag (unquoted) 1`] = `
<p class=\\"{bool ? \\"text\\" : \\"active\\" }\\">Text</p>
</div>
</div>
<script>
import css from \\"./external.css\\";
</script>"
"
`;
exports[`/svelte.js should extract CSS from a <link> tag (unquoted) 2`] = `
Expand Down Expand Up @@ -261,9 +255,7 @@ exports[`/svelte.js should handle errors: empty css file - <link> 3`] = `
"
<div class=\\"{\\"css.nope\\"}\\">NOPE</div>
<div class=\\"{css.alsonope}\\">STILL NOPE</div>
<script>
import css from \\"./empty.css\\";
</script>"
"
`;
exports[`/svelte.js should handle errors: empty css file - <style> 1`] = `"@modular-css/svelte: Unable to find .nope, .alsonope in \\"<style>\\""`;
Expand Down Expand Up @@ -345,9 +337,7 @@ exports[`/svelte.js should handle errors: invalid reference template - <link> 3`
"
<h1 class=\\"{\\"css.nope\\"}\\">Nope</h1>
<h2 class=\\"yup\\">Yup</h2>
<script>
import css from \\"./invalid.css\\";
</script>"
"
`;
exports[`/svelte.js should handle errors: invalid reference template - <style> 1`] = `"@modular-css/svelte: Unable to find .nope in \\"<style>\\""`;
Expand All @@ -372,9 +362,7 @@ exports[`/svelte.js should ignore <links> that reference a URL 1`] = `
"<link rel=\\"stylesheet\\" href=\\"http://example.com/styles.css\\" />
<div class=\\"fooga\\">fooga</div>
<script>
import css from \\"./simple.css\\";
</script>"
"
`;
exports[`/svelte.js should ignore <links> that reference a URL 2`] = `
Expand All @@ -392,11 +380,7 @@ exports[`/svelte.js should ignore files without <style> blocks 1`] = `
exports[`/svelte.js should ignore files without <style> blocks 2`] = `""`;
exports[`/svelte.js should invalidate files before reprocessing (<link>) 1`] = `
"<div class=\\"source\\">Source</div><script>
import css from \\"./source.css\\";
</script>"
`;
exports[`/svelte.js should invalidate files before reprocessing (<link>) 1`] = `"<div class=\\"source\\">Source</div>"`;
exports[`/svelte.js should invalidate files before reprocessing (<link>) 2`] = `
"/* packages/svelte/test/output/source.css */
Expand All @@ -405,11 +389,7 @@ exports[`/svelte.js should invalidate files before reprocessing (<link>) 2`] = `
}"
`;
exports[`/svelte.js should invalidate files before reprocessing (<link>) 3`] = `
"<div class=\\"source\\">Source</div><script>
import css from \\"./source.css\\";
</script>"
`;
exports[`/svelte.js should invalidate files before reprocessing (<link>) 3`] = `"<div class=\\"source\\">Source</div>"`;
exports[`/svelte.js should invalidate files before reprocessing (<link>) 4`] = `
"/* packages/svelte/test/output/source.css */
Expand Down Expand Up @@ -660,9 +640,7 @@ exports[`/svelte.js should use an already-created processor 1`] = `
"<link rel=\\"stylesheet\\" href=\\"http://example.com/styles.css\\" />
<div class=\\"fooga\\">fooga</div>
<script>
import css from \\"./simple.css\\";
</script>"
"
`;
exports[`/svelte.js should use an already-created processor 2`] = `
Expand Down Expand Up @@ -690,9 +668,7 @@ exports[`/svelte.js should warn when multiple <link> elements are in the html 1`
<div class=\\"fooga\\">fooga</div>
<div class=\\"{\\"css.booga\\"}\\">booga</div>
<script>
import css from \\"./simple.css\\";
</script>"
"
`;
exports[`/svelte.js should warn when multiple <link> elements are in the html 2`] = `
Expand Down

0 comments on commit 6e4d2c7

Please sign in to comment.