title: Angular 4 - Failed: Can't resolve all parameters for ActivatedRoute: (?, ?, ?, ?, ?, ?, ?, ?)
body: <p>I have referred the following link to get the answers, but I couldn't find any working solution for my scenario. 
  <a href="https://stackoverflow.com/questions/40509325/error-systemjs-cant-resolve-all-parameters-for-activatedroute">Error: (SystemJS) Can&#39;t resolve all parameters for ActivatedRoute: (?, ?, ?, ?, ?, ?, ?, ?)</a></p>
  
  <p>Therefore, I have been trying to remove the Activated Route from the providers and still the test bed is not passing. It shows</p>
  
  <blockquote>
    <p>Error: No provider for ActivatedRoute!</p>
  </blockquote>
  
  <p>So here is my code, I want to run my test bed in the angular application which is using <strong>Jasmine.</strong></p>
  
  <pre><code>import { ActivatedRoute } from '@angular/router';
  import { async, ComponentFixture, TestBed } from '@angular/core/testing';
  import { RouterModule, Routes } from '@angular/router';
  import { RouterTestingModule } from '@angular/router/testing';
  
  describe('SomeComponent', () =&gt; {
    let component: SomeComponent;
    let fixture: ComponentFixture&lt;SomeComponent&gt;;
  
    beforeEach(async(() =&gt; {
      TestBed.configureTestingModule({ 
        imports: [ RouterModule, RouterTestingModule ],
        declarations: [ SomeComponent ],
        providers: [ ActivatedRoute ],
      })
      .compileComponents();
    }));
  
    beforeEach(() =&gt; {
      fixture = TestBed.createComponent(SomeComponent);
      component = fixture.componentInstance;
      fixture.detectChanges();
    });
  
    it('should create', () =&gt; {
      expect(component).toBeTruthy();
    });
  });
  </code></pre>
  
  <p>Error getting</p>
  
  <p><a href="https://i.stack.imgur.com/aY5Ff.png" rel="noreferrer"><img src="https://i.stack.imgur.com/aY5Ff.png" alt="enter image description here"></a></p>