import { NgxSpinnerModule } from 'ngx-spinner';
import { provideHttpClient } from '@angular/common/http';
import { GridModule } from '@progress/kendo-angular-grid';
import { InputsModule } from '@progress/kendo-angular-inputs';
import { TestBed, waitForAsync } from '@angular/core/testing';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
import { DatePickerModule } from '@progress/kendo-angular-dateinputs';
import { DatePipe, DecimalPipe, CommonModule } from '@angular/common';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

import { AlertComponent } from '../components/alert';
import { AppRoutesModule } from '../app.routes.module';
import { BreadcrumbService } from '../breadcrumb.service';
import { ThisSystemComponent } from './thissystem.component';
import { ServicesModule } from '../../providers/services.module';
import { FunctionService } from '../components/models/function.service';

describe('ThisSystemComponent', () =>
{
  beforeEach(waitForAsync(() =>
  {
    TestBed.configureTestingModule({
    imports: [
        BrowserAnimationsModule,
        AppRoutesModule,
        FormsModule,
        ReactiveFormsModule,
        CommonModule,
        ServicesModule,
        AlertComponent,
        DropDownsModule,
        GridModule,
        InputsModule,
        DatePickerModule,
        NgxSpinnerModule,
        ThisSystemComponent
    ],
    providers: [
        provideHttpClient(),
        DatePipe,
        DecimalPipe,
        FunctionService,
        BreadcrumbService
    ]
}).compileComponents();
  }));
  it('Component created successfully...', waitForAsync(() =>
  {
    const fixture = TestBed.createComponent(ThisSystemComponent);
    const app = fixture.debugElement.componentInstance;
    expect(app).toBeTruthy();
  }));
});
