diff --git a/test/runtime/samples/class-with-spread/_config.js b/test/runtime/samples/class-with-spread/_config.js new file mode 100644 index 0000000000..c26a534d2a --- /dev/null +++ b/test/runtime/samples/class-with-spread/_config.js @@ -0,0 +1,22 @@ +export default { + data: { + myClass: 'one two', + attributes: { + role: 'button' + } + }, + html: `
`, + + test ( assert, component, target, window ) { + component.set({ + attributes: { + 'aria-label': 'Test' + }, + myClass: 'one' + }); + + assert.htmlEqual( target.innerHTML, ` +
+ ` ); + } +}; diff --git a/test/runtime/samples/class-with-spread/main.html b/test/runtime/samples/class-with-spread/main.html new file mode 100644 index 0000000000..dab73757c9 --- /dev/null +++ b/test/runtime/samples/class-with-spread/main.html @@ -0,0 +1 @@ +