import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { TranslateModule } from '@ngx-translate/core'; import { NzNotificationService } from 'ng-zorro-antd'; import { NgZorroAntdModule } from 'ng-zorro-antd'; import { NotificationComponent } from './notification.component'; describe('NotificationComponent', () => { let component: NotificationComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ NotificationComponent ], imports: [ TranslateModule, NgZorroAntdModule ], providers: [ NzNotificationService ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(NotificationComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });