Skip to content

Commit 5dc8991

Browse files
test: TTL-910 fix tests
1 parent 13fcb10 commit 5dc8991

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,9 @@ describe('TimeRangeCustomComponent', () => {
131131
});
132132

133133
it('When the ngOnChanges method is the first change, the onSubmit method is not called', () => {
134+
const [userId, projectId, activityId] = ['user-2', 'project_id', 'activity_id'];
134135
spyOn(component, 'onSubmit');
135136

136-
const userId = 'user-2';
137-
const projectId = 'project_id';
138-
const activityId = 'activity_id';
139-
140137
component.ngOnChanges({
141138
userId: new SimpleChange(null, userId, true),
142139
projectId: new SimpleChange(null, projectId, true),

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

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

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

155153
component.ngOnChanges({
156154
userId: new SimpleChange(null, userId, true),

0 commit comments

Comments
 (0)