Skip to content

Commit 599b743

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

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ describe('TimeRangeCustomComponent', () => {
117117

118118
it('When the ngOnChanges method is called, the onSubmit method is called', () => {
119119
const userIdCalled = 'test-user-1';
120-
const projectIdCalled = 'test-project';
121-
const activityIdCalled = 'test-activity';
120+
const projectIdCalled = 'test-project_id';
121+
const activityIdCalled = 'test-activity_id';
122122
spyOn(component, 'onSubmit');
123123

124124
component.ngOnChanges({
@@ -131,9 +131,9 @@ describe('TimeRangeCustomComponent', () => {
131131
});
132132

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

139139
component.ngOnChanges({

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

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

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

155155
component.ngOnChanges({

0 commit comments

Comments
 (0)