Skip to content

Commit 13fcb10

Browse files
test: TTL-910 fix tests
1 parent 57e0809 commit 13fcb10

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/app/modules/reports/components/time-range-custom/time-range-custom.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,11 @@ describe('TimeRangeCustomComponent', () => {
131131
});
132132

133133
it('When the ngOnChanges method is the first change, the onSubmit method is not called', () => {
134+
spyOn(component, 'onSubmit');
135+
134136
const userId = 'user-2';
135137
const projectId = 'project_id';
136138
const activityId = 'activity_id';
137-
spyOn(component, 'onSubmit');
138139

139140
component.ngOnChanges({
140141
userId: new SimpleChange(null, userId, true),

src/app/modules/reports/components/time-range-form/time-range.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ describe('Reports Page', () => {
147147
});
148148

149149
it('When the ngOnChanges method is the first change, the onSubmit method is not called', () => {
150+
spyOn(component, 'onSubmit');
150151
const userId = 'user_id';
151152
const projectId = 'project_id';
152153
const activityId = 'activity_id';
153-
spyOn(component, 'onSubmit');
154154

155155
component.ngOnChanges({
156156
userId: new SimpleChange(null, userId, true),

0 commit comments

Comments
 (0)