Skip to content

Commit 89ddb0a

Browse files
test: TTL-910 fix tests
1 parent 590c5dd commit 89ddb0a

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ describe('TimeRangeCustomComponent', () => {
4040
entriesForReport: [timeEntry],
4141
};
4242

43-
const userId = 'test-userId';
44-
const projectId = 'test-projectId';
45-
const activityId = 'test-activityId';
43+
const [userId, projectId, activityId] = ['test-userId', 'test-projectId', 'test-activityId'];
4644

4745
beforeEach(async () => {
4846
await TestBed.configureTestingModule({

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ describe('Reports Page', () => {
4242
entriesForReport: [timeEntry],
4343
};
4444

45-
const userId = 'test-userId';
46-
const projectId = 'test-projectId';
47-
const activityId = 'test-activityId';
45+
const [userId, projectId, activityId] = ['test-userId', 'test-projectId', 'test-activityId'];
4846

4947
beforeEach(
5048
waitForAsync(() => {
@@ -135,9 +133,6 @@ describe('Reports Page', () => {
135133
expect(component.onSubmit).toHaveBeenCalled();
136134
});
137135

138-
const userIdCalled = 'test-user-2';
139-
const projectIdCalled = 'test-project';
140-
const activityIdCalled = 'test-activity';
141136
it('When the ngOnChanges method is called, the onSubmit method is called', () => {
142137
spyOn(component, 'onSubmit');
143138

0 commit comments

Comments
 (0)