import { ComponentFixture } from '@angular/core/testing' ; import { highlight , Theme } from 'pretty-html-log' ; import { removeComments } from '../prettier-util' ; export const fixturePrettier = < T > ( fixture , enableComments , theme ) : void => { console . log ( prettyFixture ( fixture , enableComments , theme ) ) ; } ; export const prettyFixture = < T > ( fixture , enableComments , theme ) : string => { const innerHTML = fixture . debugElement . nativeElement . innerHTML ; return highlight ( enableComments ? innerHTML : removeComments ( innerHTML ) , theme ) ; } ;