From ad9949bfc5dc6c0f9c0864c91b6b8c1a06449c55 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Sat, 2 Mar 2019 13:51:45 -0500 Subject: [PATCH] add test for #2127 --- test/runtime/samples/prop-subscribable/_config.js | 11 +++++++++++ test/runtime/samples/prop-subscribable/main.svelte | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100644 test/runtime/samples/prop-subscribable/_config.js create mode 100644 test/runtime/samples/prop-subscribable/main.svelte diff --git a/test/runtime/samples/prop-subscribable/_config.js b/test/runtime/samples/prop-subscribable/_config.js new file mode 100644 index 0000000000..69f8104fab --- /dev/null +++ b/test/runtime/samples/prop-subscribable/_config.js @@ -0,0 +1,11 @@ +import { writable } from '../../../../store.js'; + +export default { + props: { + b: writable(42) + }, + + html: ` + 42 + ` +}; \ No newline at end of file diff --git a/test/runtime/samples/prop-subscribable/main.svelte b/test/runtime/samples/prop-subscribable/main.svelte new file mode 100644 index 0000000000..6721635efd --- /dev/null +++ b/test/runtime/samples/prop-subscribable/main.svelte @@ -0,0 +1,7 @@ + + +{$b} \ No newline at end of file