From d0f5801a6b4afdf5c535a818ab44d125350aa2ac Mon Sep 17 00:00:00 2001 From: Pat Cavit Date: Thu, 28 Mar 2019 10:24:01 -0700 Subject: [PATCH 1/2] test: failing specimens & snapshot for #575 --- .../test/__snapshots__/svelte.test.js.snap | 28 +++++++++++++++---- .../specimens/invalid-external-script.html | 1 + .../specimens/invalid-external-template.html | 1 + .../test/specimens/invalid-inline-script.html | 1 + .../specimens/invalid-inline-template.html | 1 + 5 files changed, 26 insertions(+), 6 deletions(-) diff --git a/packages/svelte/test/__snapshots__/svelte.test.js.snap b/packages/svelte/test/__snapshots__/svelte.test.js.snap index d789357dc..186f533c1 100644 --- a/packages/svelte/test/__snapshots__/svelte.test.js.snap +++ b/packages/svelte/test/__snapshots__/svelte.test.js.snap @@ -254,7 +254,7 @@ Array [ exports[`/svelte.js should handle errors: empty css file - 3`] = ` "
NOPE
-
STILL NOPE
+
STILL NOPE
" `; @@ -273,19 +273,22 @@ Array [ exports[`/svelte.js should handle errors: empty css file - " `; -exports[`/svelte.js should handle errors: invalid reference " `; -exports[`/svelte.js should handle errors: invalid reference " `; -exports[`/svelte.js should handle errors: invalid reference template - 1`] = `"@modular-css/svelte: Unable to find .nope in \\"./invalid.css\\""`; +exports[`/svelte.js should handle errors: invalid reference template - 1`] = `"@modular-css/svelte: Unable to find .nope, .stillnope in \\"./invalid.css\\""`; exports[`/svelte.js should handle errors: invalid reference template - 2`] = ` Array [ Array [ "@modular-css/svelte: Unable to find .nope in \\"./invalid.css\\"", ], + Array [ + "@modular-css/svelte: Unable to find .stillnope in \\"./invalid.css\\"", + ], ] `; @@ -337,22 +348,27 @@ exports[`/svelte.js should handle errors: invalid reference template - 3` "

Nope

Yup

+

Still Nope

" `; -exports[`/svelte.js should handle errors: invalid reference template - " diff --git a/packages/svelte/test/specimens/invalid-external-script.html b/packages/svelte/test/specimens/invalid-external-script.html index e42904b6c..2cc249e80 100644 --- a/packages/svelte/test/specimens/invalid-external-script.html +++ b/packages/svelte/test/specimens/invalid-external-script.html @@ -4,4 +4,5 @@

Yup

diff --git a/packages/svelte/test/specimens/invalid-external-template.html b/packages/svelte/test/specimens/invalid-external-template.html index f98db962d..abee46180 100644 --- a/packages/svelte/test/specimens/invalid-external-template.html +++ b/packages/svelte/test/specimens/invalid-external-template.html @@ -2,3 +2,4 @@

Nope

Yup

+

Still Nope

diff --git a/packages/svelte/test/specimens/invalid-inline-script.html b/packages/svelte/test/specimens/invalid-inline-script.html index a6bb0f401..72ef7dbab 100644 --- a/packages/svelte/test/specimens/invalid-inline-script.html +++ b/packages/svelte/test/specimens/invalid-inline-script.html @@ -6,4 +6,5 @@

Yup

diff --git a/packages/svelte/test/specimens/invalid-inline-template.html b/packages/svelte/test/specimens/invalid-inline-template.html index 364a0fe65..2b9a47a1c 100644 --- a/packages/svelte/test/specimens/invalid-inline-template.html +++ b/packages/svelte/test/specimens/invalid-inline-template.html @@ -1,5 +1,6 @@

Nope

Yup

+

Also Nope