export default { skip_if_ssr: true, props: { tag: 'my-custom-element', name: null }, html: ` Hello null! Hello null! `, test({ assert, component, target }) { component.name = undefined; assert.htmlEqual( target.innerHTML, `Hello undefined! Hello undefined!` ); component.name = 'foo'; assert.htmlEqual( target.innerHTML, `Hello foo! Hello foo!` ); component.tag = null; assert.htmlEqual( target.innerHTML, 'Hello foo!' ); component.tag = 'div'; assert.htmlEqual( target.innerHTML, `
Hello foo!` ); component.tag = 'my-custom-element'; assert.htmlEqual( target.innerHTML, `Hello foo! Hello foo!` ); } };