diff --git a/test/runtime/samples/assignment-to-const1/_config.js b/test/runtime/samples/assignment-to-const1/_config.js new file mode 100644 index 0000000000..2fd0447458 --- /dev/null +++ b/test/runtime/samples/assignment-to-const1/_config.js @@ -0,0 +1,3 @@ +export default { + html: '
2, 1
' +}; diff --git a/test/runtime/samples/assignment-to-const1/main.svelte b/test/runtime/samples/assignment-to-const1/main.svelte new file mode 100644 index 0000000000..f221249193 --- /dev/null +++ b/test/runtime/samples/assignment-to-const1/main.svelte @@ -0,0 +1,6 @@ + + +{arr[0]}, {arr[1]}
diff --git a/test/runtime/samples/assignment-to-const2/_config.js b/test/runtime/samples/assignment-to-const2/_config.js new file mode 100644 index 0000000000..9802ca2c44 --- /dev/null +++ b/test/runtime/samples/assignment-to-const2/_config.js @@ -0,0 +1,3 @@ +export default { + html: '[{"a":2},100]
' +}; diff --git a/test/runtime/samples/assignment-to-const2/main.svelte b/test/runtime/samples/assignment-to-const2/main.svelte new file mode 100644 index 0000000000..c805e4b589 --- /dev/null +++ b/test/runtime/samples/assignment-to-const2/main.svelte @@ -0,0 +1,7 @@ + + +{JSON.stringify(arr)}
diff --git a/test/validator/samples/assignment-to-const-8/errors.json b/test/validator/samples/assignment-to-const-8/errors.json new file mode 100644 index 0000000000..fe51488c70 --- /dev/null +++ b/test/validator/samples/assignment-to-const-8/errors.json @@ -0,0 +1 @@ +[] diff --git a/test/validator/samples/assignment-to-const-8/input.svelte b/test/validator/samples/assignment-to-const-8/input.svelte new file mode 100644 index 0000000000..8af787f4f0 --- /dev/null +++ b/test/validator/samples/assignment-to-const-8/input.svelte @@ -0,0 +1,6 @@ + + +{arr}