import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ShoppingCartComponent } from './shopping-cart.component'; describe('ShoppingCartComponent', () => { let component: ShoppingCartComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ ShoppingCartComponent ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(ShoppingCartComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });