From 1bb1294c51da1cc8b46654d0815b7f49c37ccf29 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Sun, 3 Feb 2019 22:04:35 -0500 Subject: [PATCH] failing test for #2022 --- .../reactive-values-exported/_config.js | 18 ++++++++++++++++++ .../samples/reactive-values-exported/main.html | 11 +++++++++++ 2 files changed, 29 insertions(+) create mode 100644 test/runtime/samples/reactive-values-exported/_config.js create mode 100644 test/runtime/samples/reactive-values-exported/main.html diff --git a/test/runtime/samples/reactive-values-exported/_config.js b/test/runtime/samples/reactive-values-exported/_config.js new file mode 100644 index 0000000000..56220d3993 --- /dev/null +++ b/test/runtime/samples/reactive-values-exported/_config.js @@ -0,0 +1,18 @@ +export default { + props: { + x: 1 + }, + + html: ` +

1 1 1

+ `, + + test({ assert, component, target }) { + assert.equal(component.y, 1); + assert.equal(component.z, 1); + + component.x = 2; + assert.equal(component.y, 2); + assert.equal(component.z, 2); + } +}; diff --git a/test/runtime/samples/reactive-values-exported/main.html b/test/runtime/samples/reactive-values-exported/main.html new file mode 100644 index 0000000000..2a9e5dc8f5 --- /dev/null +++ b/test/runtime/samples/reactive-values-exported/main.html @@ -0,0 +1,11 @@ + + +

{x} {y} {z}

\ No newline at end of file