Skip to content

Commit 631f4a4

Browse files
author
Abigail Cabascango
committed
refactor: refactor tests for TT-206 and fix linters
1 parent d284f37 commit 631f4a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/modules/time-clock/components/project-list-hover/project-list-hover.component.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ describe('ProjectListHoverComponent', () => {
9494
spyOn(store, 'dispatch');
9595

9696
component.clockIn(1, 'customer', 'project');
97+
component.clockIn(2, 'customer', 'project');
9798

9899
expect(store.dispatch).toHaveBeenCalledWith(jasmine.any(ClockIn));
99100
expect(component.canMarkEntryAsWIP).toBe(true);

src/app/modules/time-clock/components/project-list-hover/project-list-hover.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class ProjectListHoverComponent implements OnInit, OnDestroy {
4242
recentProjectsSubscription: Subscription;
4343
activeEntrySubscription: Subscription;
4444
loadActivitiesSubscription: Subscription;
45-
canMarkEntryAsWIP : boolean;
45+
canMarkEntryAsWIP: boolean;
4646

4747
constructor(
4848
private formBuilder: FormBuilder,
@@ -140,7 +140,6 @@ export class ProjectListHoverComponent implements OnInit, OnDestroy {
140140
}
141141

142142
isThereAnEntryRunning(entries: Entry[]) {
143-
console.log(!!this.getEntryRunning(entries))
144143
return !!this.getEntryRunning(entries);
145144
}
146145

0 commit comments

Comments
 (0)