All files / src/app/features/jobs/job-comment job-comment.component.ts

90.9% Statements 10/11
0% Branches 0/4
60% Functions 3/5
100% Lines 7/7

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 234x 4x 4x   4x               4x   7x         1x      
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { MatIcon } from '@angular/material/icon';
import { MatTooltip } from '@angular/material/tooltip';
import { Job } from '@app/core/model/job.interface';
import { JobEditableFieldComponent } from '../job-editable-field/job-editable-field.component';
 
@Component({
  selector: 'app-job-comment',
  imports: [MatTooltip, MatIcon, JobEditableFieldComponent],
  templateUrl: './job-comment.component.html',
  styleUrl: './job-comment.component.scss'
})
export class JobCommentComponent {
  @Input({ required: true }) job!: Job;
  @Output() commentChanged = new EventEmitter<Job>();
 
  constructor() {}
 
  onJobEdited(job: Job) {
    this.commentChanged.emit(job);
  }
 
}