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

29 lines
518 B

export default {
get props() {
return {
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>'
);
}
};