Skip to content

Commit 8dc0d4a

Browse files
fix: TT-141 Delete test lines and add in the test the method of edited an entry
1 parent d2fc8aa commit 8dc0d4a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/app/modules/time-entries/pages/time-entries.component.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ describe('TimeEntriesComponent', () => {
429429

430430
it('Should the entry be null if the flag is true', () => {
431431
component.wasEditingExistingTimeEntry = true;
432+
const idEntry = '1';
433+
component.editEntry(idEntry);
432434
component.newEntry();
433435
expect(component.entry).toBe(null);
434436
});

src/app/modules/time-entries/pages/time-entries.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export class TimeEntriesComponent implements OnInit, OnDestroy {
5656
if (this.wasEditingExistingTimeEntry) {
5757
this.entry = null;
5858
}
59-
console.log('Esta es', this.entry);
6059
this.entryId = null;
6160
this.store.pipe(select(getTimeEntriesDataSource)).subscribe(ds => {
6261
this.canMarkEntryAsWIP = !this.isThereAnEntryRunning(ds.data);

0 commit comments

Comments
 (0)