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/fragment-trailing-whitespace/_config.js

17 lines
415 B

const message = 'the quick brown fox jumps over the lazy dog';
const expected = [...message].map(c => `<span>${c + ' '}</span>`).join('');
export default {
props: {
message
},
async test({ assert, target }) {
const firstSpanList = target.children[0];
assert.equal(firstSpanList.innerHTML, expected);
const secondSpanList = target.children[1];
assert.equal(secondSpanList.innerHTML, expected);
}
};