UNPKG

ngx-text-editor-angular

Version:
34 lines (29 loc) 1.34 kB
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; import { NgxTextEditorToolbarComponent } from './ngx-text-editor-toolbar.component'; import { ngxTextEditorConfig } from '../common/ngx-text-editor.defaults'; import { PopoverModule } from 'ngx-bootstrap'; import { CommandExecutorService } from '../common/services/command-executor.service'; import { MessageService } from '../common/services/message.service'; describe('NgxTextEditorToolbarComponent', () => { let component: NgxTextEditorToolbarComponent; let fixture: ComponentFixture<NgxTextEditorToolbarComponent>; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [FormsModule, ReactiveFormsModule, PopoverModule.forRoot(), HttpClientModule], declarations: [NgxTextEditorToolbarComponent], providers: [CommandExecutorService, MessageService] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(NgxTextEditorToolbarComponent); component = fixture.componentInstance; component.config = ngxTextEditorConfig; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });