export default {
get props() {
return { componentName: 'Sub' };
},
html: '
Sub
',
test({ assert, component, target }) {
component.componentName = 'Proxy';
assert.htmlEqual(target.innerHTML, 'Sub
');
try {
component.componentName = 'banana';
throw new Error('Expected an error');
} catch (err) {
assert.equal(err.message, 'component is not a constructor');
}
}
};