svelte/test/runtime/samples/svg-no-whitespace/_config.js

10 lines
259 B

export default {
test ( assert, component, target ) {
const svg = target.querySelector( 'svg' );
assert.equal( svg.childNodes.length, 2 );
assert.equal( svg.childNodes[0].nodeName, 'rect' );
assert.equal( svg.childNodes[1].nodeName, 'rect' );
}
};