Angular2 testing data in decorators

Viewed 899

I have a component and I want to check the selector in unit tests

@Component({
     selector: 'my-component',
)}

I want to test like this

describe('My Component', function(){ 
   it('should have a selector', function() {
      expect( ___ ).toBe('my-component');
   }); 
)}
2 Answers
Related