Skip to content
Prev Previous commit
remove test method
  • Loading branch information
daros10 committed Mar 24, 2020
commit ce0682b13255fa2651f5678acedf755d6c0fe71e
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h6 class="text-left"><strong>Projects</strong></h6>
<div class="col-sm-10">
<input *ngIf="!showAlertEnterTecnology" #data type="text" (keyup)="enterTechnology(data.value)" class="form-control">
<input *ngIf="showAlertEnterTecnology" #data type="text" (keyup)="enterTechnology(data.value)" class="form-control border-danger">
<div class="">
<div>
<h6 *ngIf="showAlertEnterTecnology" class="text-danger text-left">Technology field is required. Enter this field to clock out.</h6>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed, fakeAsync } from '@angular/core/testing';
import { async, ComponentFixture, TestBed, fakeAsync, tick } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { DebugElement, Component } from '@angular/core';
import { TimeClockComponent } from './time-clock.component';
Expand Down Expand Up @@ -102,27 +102,4 @@ describe('TimeClockComponent', () => {
expect(component.enterTechnology).toHaveBeenCalled();
});

// it('show init state of vars', () => {
// spyOn(component, 'employeClockIn');
// const isClockIn = true;
// const isEnterTechnology = false;
// const hourCounterRealTime = 0;
// const minuteCounterRealTime = 0;
// const secondsCounterRealTime = 0;
// const hour = 0;
// const minute = 0;
// const seconds = 0;
// expect(component.isClockIn).toBe(isClockIn);
// expect(component.isEnterTechnology).toBe(isEnterTechnology);
// expect(component.hourCounterRealTime).toBe(hourCounterRealTime);
// expect(component.minuteCounterRealTime).toBe(minuteCounterRealTime);
// expect(component.secondsCounterRealTime).toBe(secondsCounterRealTime);
// expect(component.hour).toBe(hour);
// expect(component.minute).toBe(minute);
// expect(component.seconds).toBe(hour);
// });




});