import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ClarityModule } from '@clr/angular';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { AppConfigService } from "../app-config.service";
import { VulnerabilityPageComponent } from './vulnerability-page.component';

describe('VulnerabilityPageComponent', () => {
  let component: VulnerabilityPageComponent;
  let fixture: ComponentFixture<VulnerabilityPageComponent>;
  let fakeAppConfigService = null;
  beforeEach(async(() => {
    TestBed.configureTestingModule({
      schemas: [
        CUSTOM_ELEMENTS_SCHEMA
      ],
      imports: [
        ClarityModule,
        TranslateModule.forRoot()
      ],
      providers: [
        TranslateService,
        { provide: AppConfigService, useValue: fakeAppConfigService }
      ],
      declarations: [VulnerabilityPageComponent]
    }).compileComponents();
  }));

  beforeEach(() => {
    fixture = TestBed.createComponent(VulnerabilityPageComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

  it('should create', () => {
    expect(component).toBeTruthy();
  });
});
