From 8169e1d90dd51199bf55645f646022369e95a2a1 Mon Sep 17 00:00:00 2001 From: Bryan Terce Date: Sun, 23 Jun 2019 01:03:55 -0700 Subject: [PATCH] Add test case for computed bind --- .../binding-this-component-computed-key/Foo.svelte | 1 + .../binding-this-component-computed-key/_config.js | 8 ++++++++ .../binding-this-component-computed-key/main.svelte | 9 +++++++++ 3 files changed, 18 insertions(+) create mode 100644 test/runtime/samples/binding-this-component-computed-key/Foo.svelte create mode 100644 test/runtime/samples/binding-this-component-computed-key/_config.js create mode 100644 test/runtime/samples/binding-this-component-computed-key/main.svelte diff --git a/test/runtime/samples/binding-this-component-computed-key/Foo.svelte b/test/runtime/samples/binding-this-component-computed-key/Foo.svelte new file mode 100644 index 0000000000..066a48b65e --- /dev/null +++ b/test/runtime/samples/binding-this-component-computed-key/Foo.svelte @@ -0,0 +1 @@ +
foo
\ No newline at end of file diff --git a/test/runtime/samples/binding-this-component-computed-key/_config.js b/test/runtime/samples/binding-this-component-computed-key/_config.js new file mode 100644 index 0000000000..415d2e641c --- /dev/null +++ b/test/runtime/samples/binding-this-component-computed-key/_config.js @@ -0,0 +1,8 @@ +export default { + skip_if_ssr: true, + + html: ` +
foo
+
has foo: true
+ ` +}; diff --git a/test/runtime/samples/binding-this-component-computed-key/main.svelte b/test/runtime/samples/binding-this-component-computed-key/main.svelte new file mode 100644 index 0000000000..af450ea1fe --- /dev/null +++ b/test/runtime/samples/binding-this-component-computed-key/main.svelte @@ -0,0 +1,9 @@ + + + +
+ has foo: {!!foo.computed} +