Skip to content
Prev Previous commit
Next Next commit
test: TT-304 Creating an unit test to coverage the new feature
  • Loading branch information
Edgar Guaman committed Aug 21, 2021
commit f4833d2f9716f034564a6bd80d0a5cd4edeb6d08
Original file line number Diff line number Diff line change
Expand Up @@ -668,4 +668,11 @@ describe('TimeEntriesComponent', () => {

expect(HTMLTimeEntriesView).not.toBeNull();
});

it('after the component is initialized it should initialize the table', () => {
spyOn(component.dtTrigger, 'next');
component.ngAfterViewInit();

expect(component.dtTrigger.next).toHaveBeenCalled();
});
});