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 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 1x 23x 46x 76x 104x | import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; import { CommonModule } from '@angular/common'; import { GithubLanguages } from '../../../services/github/github.model'; @Component({ selector: 'app-project-lang', templateUrl: './project-lang.component.html', styleUrls: ['./project-lang.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [CommonModule], }) export class ProjectLangComponent { @Input({ required: true }) set languages(value: GithubLanguages) { this._languages = value; this.langSum = +Object.values(value).reduce((v1, v2) => v1 + v2); }; get languages(): GithubLanguages { return this._languages; } protected langSum!: number; private _languages!: GithubLanguages; protected compare(v1: any, v2: any): number { return +v1.value < +v2.value ? 1 : -1; } } |