Skip to content

Commit 6f3bc77

Browse files
committed
test: TT-344 add test for new methods in time-entries-component
1 parent 7398454 commit 6f3bc77

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
@@ -133,6 +133,13 @@ describe('TimeEntriesComponent', () => {
133133
});
134134
}));
135135

136+
it('after the component is initialized it should initialize the table', () => {
137+
spyOn(component.dtTrigger, 'next');
138+
component.ngAfterViewInit();
139+
140+
expect(component.dtTrigger.next).toHaveBeenCalled();
141+
});
142+
136143
it('when create time entries, the time entries should be queried', () => {
137144
const currentMonth = new Date().getMonth() + 1;
138145
const year = new Date().getFullYear();

0 commit comments

Comments
 (0)