import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ScrollTopComponent } from './scroll-top.component'; import { UserService } from '../../services/user.service'; import { SharedService } from '../shared.service'; import {HttpClient, HttpHandler} from '@angular/common/http'; import { CartService } from '../../services/cart.service'; import { CustomerService } from '../../services/customer.service'; import { LookupService } from '../../services/lookup.service'; import { LoggingService } from '../../services/logging.service'; import { TradeinService } from '../../services/tradein.service'; import { CatalogService } from '../../services/catalog.service'; import { CheckoutService } from '../../services/checkout.service'; import { RouterTestingModule } from '@angular/router/testing'; describe('ScrollTopComponent', () => { let component: ScrollTopComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ providers: [ UserService, SharedService, CartService, CustomerService, LookupService, TradeinService, LoggingService, CheckoutService, CatalogService, HttpClient, HttpHandler ], imports: [ RouterTestingModule ], declarations: [ ScrollTopComponent ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(ScrollTopComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });