svelte/test/runtime/samples/nbsp/_config.js

8 lines
195 B

export default {
html: `<span>&nbsp;</span>`,
test ( assert, component, target ) {
const text = target.querySelector( 'span' ).textContent;
assert.equal( text.charCodeAt( 0 ), 160 );
}
};