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