From 5629a8d1c20aa2aede67b7880d98e1e8434d1b9e Mon Sep 17 00:00:00 2001 From: John Chesley Date: Thu, 7 Mar 2019 22:39:48 -0500 Subject: [PATCH] add samples for various export syntax --- test/runtime/samples/prop-exports/_config.js | 29 ++++++++++++ test/runtime/samples/prop-exports/main.svelte | 46 +++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 test/runtime/samples/prop-exports/_config.js create mode 100644 test/runtime/samples/prop-exports/main.svelte diff --git a/test/runtime/samples/prop-exports/_config.js b/test/runtime/samples/prop-exports/_config.js new file mode 100644 index 000000000000..5959d4e5a9f3 --- /dev/null +++ b/test/runtime/samples/prop-exports/_config.js @@ -0,0 +1,29 @@ +import { writable } from '../../../../store'; + +export default { + props: { + s1: writable(42), + s2: writable(43), + p1: 2, + p3: 3, + a1: writable(1), + a2: 4, + a6: writable(29), + for: 'loop', + continue: '...', + }, + + html: ` + $s1=42 + $s2=43 + p1=2 + p3=3 + $v1=1 + v2=4 + vi1=4 + $vs1=1 + vl1=test + $s3=29 + loop... + ` +} diff --git a/test/runtime/samples/prop-exports/main.svelte b/test/runtime/samples/prop-exports/main.svelte new file mode 100644 index 000000000000..8a8fadd7be6f --- /dev/null +++ b/test/runtime/samples/prop-exports/main.svelte @@ -0,0 +1,46 @@ + + +$s1={$s1} +$s2={$s2} +p1={p1} +p3={p3} +$v1={$v1} +v2={v2} +vi1={vi1} +$vs1={$vs1} +vl1={vl1} +$s3={$s3} +{k1}{k2}