// declare let hljs;
// declare let SimpleMarkdown;

// import { ComponentFixture, TestBed } from "@angular/core/testing";
// import { MaterialModule } from "../../../../../material.module";
// import { AppModule, DynamicLocaleId, HttpLoaderFactory } from "../../../../../app.module";
// import { EnvironmentService } from "../../../../../../environments/environment.service";
// import { DialogService } from "../../../../../shared/services/dialog.service";
// import { RouterHandler } from "../../../../../shared/services/router-handler.service";
// import { MarkdownViewComponent } from "./markdown-view.component";

// import { LOCALE_ID } from "@angular/core";
// import { TranslateLoader, TranslateModule, TranslateService } from "@ngx-translate/core";
// import { HttpClient } from "@angular/common/http";

// fdescribe("MarkdownViewComponent", () => {
//   let component: MarkdownViewComponent;
//   let fixture: ComponentFixture<MarkdownViewComponent>;

//   beforeEach(() => {
//     TestBed.configureTestingModule({
//       /*declarations: [MarkdownViewComponent],
//       imports: [
//         MaterialModule,
//         TranslateModule.forRoot({
//           defaultLanguage: "en",
//           loader: {
//             provide: TranslateLoader,
//             useFactory: HttpLoaderFactory,
//             deps: [HttpClient],
//           },
//         }),
//       ],
//       providers: [
//         DialogService,
//         EnvironmentService,
//         RouterHandler,
//         TranslateService,
//       ],*/
//       imports: [
//         AppModule
//       ]
//     });
//     fixture = TestBed.createComponent(MarkdownViewComponent);
//     component = fixture.componentInstance;
//   });

//   it("should create", () => {
//     component.html = "TEXT";
//     fixture.detectChanges();
//     component.ngAfterViewInit();
//     expect(component).toBeTruthy();
//   });

//   it("should contain simple text", () => {
//     component.html = "TEXT";
//     fixture.detectChanges();
//     component.ngAfterViewInit();
//     let html = fixture.nativeElement.querySelector(".html-output").innerHTML;
//     expect(html).toBe('<div class="paragraph">TEXT</div>');
//   });

//   it("should use formats", () => {
//     component.html = "**TEXT**";
//     fixture.detectChanges();
//     component.ngAfterViewInit();
//     let html = fixture.nativeElement.querySelector(".html-output").innerHTML;
//     expect(html).toBe('<div class="paragraph"><strong>TEXT</strong></div>');
//   });
//   //
//   it("should generate empty content without parameter", () => {
//     fixture.detectChanges();
//     component.ngAfterViewInit();
//     let html = fixture.nativeElement.querySelector(".html-output").innerHTML;
//     expect(html).toBe("");
//   });

//   it("should colorize with hljs", () => {
//     component.html = "```javascript\r\nvar i = 0;\r\n```";
//     fixture.detectChanges();
//     component.ngAfterViewInit();
//     let hljsGeneratedNode =
//       fixture.nativeElement.querySelector(".html-output .hljs");
//     console.log(hljsGeneratedNode);
//     expect(hljsGeneratedNode).toBeTruthy();
//   });
// });
