Skip to content

Commit ae1eaee

Browse files
author
Edgar Guaman
committed
test: TT-304 Creating an unit test to coverage the new feature
1 parent 8a89f85 commit ae1eaee

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,4 +668,11 @@ describe('TimeEntriesComponent', () => {
668668

669669
expect(HTMLTimeEntriesView).not.toBeNull();
670670
});
671+
672+
it('after the component is initialized it should initialize the table', () => {
673+
spyOn(component.dtTrigger, 'next');
674+
component.ngAfterViewInit();
675+
676+
expect(component.dtTrigger.next).toHaveBeenCalled();
677+
});
671678
});

0 commit comments

Comments
 (0)