Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: refactor tests for TT-206 and fix linters
  • Loading branch information
Abigail Cabascango committed Nov 9, 2022
commit 631f4a4d88610d61e0861e7c2f8137dac7ef4b92
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ describe('ProjectListHoverComponent', () => {
spyOn(store, 'dispatch');

component.clockIn(1, 'customer', 'project');
component.clockIn(2, 'customer', 'project');

expect(store.dispatch).toHaveBeenCalledWith(jasmine.any(ClockIn));
expect(component.canMarkEntryAsWIP).toBe(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class ProjectListHoverComponent implements OnInit, OnDestroy {
recentProjectsSubscription: Subscription;
activeEntrySubscription: Subscription;
loadActivitiesSubscription: Subscription;
canMarkEntryAsWIP : boolean;
canMarkEntryAsWIP: boolean;

constructor(
private formBuilder: FormBuilder,
Expand Down Expand Up @@ -140,7 +140,6 @@ export class ProjectListHoverComponent implements OnInit, OnDestroy {
}

isThereAnEntryRunning(entries: Entry[]) {
console.log(!!this.getEntryRunning(entries))
return !!this.getEntryRunning(entries);
}

Expand Down