nycJSorg/angular-presentation

View on GitHub
libs/utils/src/lib/test-results/simple-tests-progress/simple-tests-progress.component.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Component, Input, OnInit } from '@angular/core';

@Component({
  selector: 'codelab-simple-tests-progress',
  templateUrl: './simple-tests-progress.component.html',
  styleUrls: ['./simple-tests-progress.component.css']
})
export class SimpleTestsProgressComponent implements OnInit {
  @Input() tests = [];

  countPassing() {
    return (this.tests || []).filter(test => test.pass).length;
  }

  constructor() {}

  ngOnInit() {}
}