Skip to content

Commit 57e0809

Browse files
test: TTL-910 fix tests
1 parent 599b743 commit 57e0809

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ describe('TimeRangeCustomComponent', () => {
131131
});
132132

133133
it('When the ngOnChanges method is the first change, the onSubmit method is not called', () => {
134-
const userIdNotCalled = 'user-2';
135-
const projectIdNotCalled = 'project_id';
136-
const activityIdNotCalled = 'activity_id';
134+
const userId = 'user-2';
135+
const projectId = 'project_id';
136+
const activityId = 'activity_id';
137137
spyOn(component, 'onSubmit');
138138

139139
component.ngOnChanges({
140-
userId: new SimpleChange(null, userIdNotCalled, true),
141-
projectId: new SimpleChange(null, projectIdNotCalled, true),
142-
activityId: new SimpleChange(null, activityIdNotCalled, true),
140+
userId: new SimpleChange(null, userId, true),
141+
projectId: new SimpleChange(null, projectId, true),
142+
activityId: new SimpleChange(null, activityId, true),
143143
});
144144

145145
expect(component.onSubmit).not.toHaveBeenCalled();

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@ describe('Reports Page', () => {
147147
});
148148

149149
it('When the ngOnChanges method is the first change, the onSubmit method is not called', () => {
150-
const userIdNotCalled = 'user_id';
151-
const projectIdNotCalled = 'project_id';
152-
const activityIdNotCalled = 'activity_id';
150+
const userId = 'user_id';
151+
const projectId = 'project_id';
152+
const activityId = 'activity_id';
153153
spyOn(component, 'onSubmit');
154154

155155
component.ngOnChanges({
156-
userId: new SimpleChange(null, userIdNotCalled, true),
157-
projectId: new SimpleChange(null, projectIdNotCalled, true),
158-
activityId: new SimpleChange(null, activityIdNotCalled, true),
156+
userId: new SimpleChange(null, userId, true),
157+
projectId: new SimpleChange(null, projectId, true),
158+
activityId: new SimpleChange(null, activityId, true),
159159
});
160160

161161
expect(component.onSubmit).not.toHaveBeenCalled();

0 commit comments

Comments
 (0)