Is there any possibility in Angular2 to verify component selector with unit test?
e.g.
@Component({
selector: 'my-component',
template: '<p>test</p>'
})
export class MyComponent {}
and
....
it(`Component should have selector 'my-component'`, () => {
expect(component.selector).toBe('my-component');
});
Aucun commentaire:
Enregistrer un commentaire