import { expect, test } from 'vitest'
import { MakePanel as Run0 } from './alias-creator-named-expression.tsx'
import { MakeWidget as Run1 } from './alias-creator-named-classexpression.tsx'
test('actual renamed named creator component 0',()=>{const yes=Run0({active:true,label:'hello'}),no=Run0({active:false,label:'world'});for(const [element,label]of [[yes.props.children,'hello'],[no.props.children,'fallback']]){const output=element.type(element.props);expect(output.type).toBe('b');expect(output.props.children).toBe(label)}})
test('actual renamed named creator component 1',()=>{const yes=Run1({active:true,label:'hello'}),no=Run1({active:false,label:'world'});for(const [element,label]of [[yes.props.children,'hello'],[no.props.children,'fallback']]){const output=new element.type(element.props).render();expect(output.type).toBe('b');expect(output.props.children).toBe(label)}})
