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