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