export default {
preserveIdentifiers: true,
props: {
links: ['a', 'b', 'c']
},
html: `
x#a
x#b
x#c
`,
test({ assert, component, target }) {
component.links = ['d', 'e', 'f'];
const links = [...target.querySelectorAll('a')];
assert.deepEqual(
links.map((l) => l.href),
['x#d', 'x#e', 'x#f']
);
assert.htmlEqual(
target.innerHTML,
`
x#d
x#e
x#f
`
);
}
};