Kamil Chmielowski
Web / Angular
Jasmine code coverage report for cv app.
You can contact with me by email: kamilchmielowski94@gmail.com or my page.
Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 1x 1x 23x 27x | import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
import { Pipe, PipeTransform } from '@angular/core';
export enum Theme { light = 'light', dark = 'dark' }
@Pipe({
name: 'themeUrl',
standalone: true,
})
export class ThemeUrlPipe implements PipeTransform {
constructor(private sanitizer: DomSanitizer) {}
transform(theme: Theme): SafeResourceUrl {
return this.sanitizer.bypassSecurityTrustResourceUrl(`${theme}.css`);
}
}
|