You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/spread-element-multiple/_config.js

32 lines
507 B

export default {
props: {
a: {
'data-one': 1,
'data-two': 2
},
c: {
'data-b': 'overridden'
},
d: 'deeeeee'
},
html: `
<div data-one="1" data-two="2" data-b="overridden" data-d="deeeeee" >test</div>
`,
test({ assert, component, target }) {
component.a = {
'data-one': 10
};
component.c = {
'data-c': 'new'
};
component.d = 'DEEEEEE';
assert.htmlEqual(
target.innerHTML,
'<div data-one="10" data-b="b" data-c="new" data-d="DEEEEEE" >test</div>'
);
}
};